[Solved] Problem. Player movement animations only playing once

Hello all, I am making a top down adventure game, think of it as 2d Zelda games.

I have the movement set up so the player moves in a 32x32 grid which is nice.

I have the player displaying the correct side of their body when they move, which is nice.

The only issue I have is the movement animation. If I press left, his movement animation plays to move one step left. If I press right then the animation plays to move right.

If I press the same direction twice, it only plays the animation once and then slides across the ground.

At the minute when a direction is pressed, I change the number of the animation to that direction, rotate, and set the coordinates for the grid. I have tried having the animations on loop but they just constantly walk, I have tried not having them on loop and having a play animation event.

Over all I am not certain what I need to be doing.

Thanks

@Kenshi, when you set the animation, also set the animation frame to 0.

With GDevelop, if you set an animation and the object is already in that animation state, it doesn’t reset it; it just continues with the current animation and current frame.

2 Likes

Thank you so much :slight_smile: It helped