I am trying to make a platformer game, and when I press left he moves left, but the animation does not work. Please help, it is my first time making a game on GDevelop, and I do not know what to do.
Maybe add that the speed of the player is greater than one while pressing left or right?
Itβs because the horizontal speed of the player is negative when going to the left. I suspect the behaviour is performing a difference between current and last position, and because the previous X position is greater than the current position, it results in a negative value.
This could be viewed as a bug, as speed should be absolute.
But to get around that, use the βPlayer is moving
β condition and invert it:
Thanks! I didnt know there was a invert option.
Update: Its fixed! Thanks to the people that helped!
2 Likes