Solution requires calling an array variable called that is not defined anywhere before.
Defining it inside the function prints out an error, even though the script functions the same.
Solution provided by GDQuest:
func run():
combo = ["jab", "jab", "uppercut"]
for action in combo:
play_animation(action)
Alternative solution that does not get accepted:
func run():
var combo = ["jab", "jab", "uppercut"]
for action in combo:
play_animation(action)
Solution requires calling an array variable called that is not defined anywhere before. Defining it inside the function prints out an error, even though the script functions the same.
Solution provided by GDQuest:
Alternative solution that does not get accepted: