Animated sprite 2d not working?

Godot Version

godot 4

Question

I tried to get the animation to play when the character body is moved, and they turn but only one animation will play. im not sure what i did wrong.

Because your flow control is basically between the last two statements, you need to use if for the first one, elif for the ones in the middle and else for the last.

2 Likes