The player animation doesnt go back to idle when against a wall

Am making a game in which the player has different animations such as run and idle. when the player is not moving, the animation is set to idle, and when the player is moving the animation is set to run. i added a condition for if the player is against a wall, the animation of the player goes back to idle. Currently, when the player is against a wall, the character animation just flickers from idle to run. How do i fix this problem such that when the player is against a wall, the animation is set to idle?

I’m new on GDevelop, but I hope that this thread could be helpful: [SOLVED] Sprite still moving during separate objects in grid based movement

Thanks i follow the guide. It’s all settled naw

1 Like