Hello everybody !
It’s my first time posting here and first time I am using GDevelop so I’m still a newbie.
So i’m making my first game and i have some trouble with player movement.
My sprite moves from left to right automatically using two objects left and right and a variable ‘‘direction’’ like in the tutorial. I want that my player changes direction when you touch the screen. So I tried to do an event so when the player touches the screen the variable direction changes to left or right depending on the condition if the variable is left or right. The problem is it work only for one direction.
For example when i touch the screen the variable is changed and the sprite goes in the opposite way. But when i touch it again there is a bug of the animation and the sprite doesn’t change it’s direction.