Animation not working on diagonals

I’m making a topdown rpg game and i’ve set the animation for when the player moves up/down/left/right, but when i move on diagonals the animation pause, how do i fix this?

When you set a sprite’s animation, if it changes from one animation to another then the animation is restarted from the first frame. However, if it’s the same animation, it continues playing it.

The problem is when you press 2 keys at once, it sets the animation in first keypress event, and then resets the animation in the second keypress event. Because the animation changes for the second keypress, it resets it to the first frame. And it does that repeatedly, giving the appearance of the animation pausing.

1 Like

Exactly, do you think that setting the same animation on a new event with the 2 keys pressed fill fix it?

I’d do something like:

1 Like

All right, I’ll try it and I’ll let you know, thx :blush: