Mobile Controls without Platformer Behaviour

Hello! I am trying to make a mobile game, and I have a problem with the controls.
I’m using an “Is cursor/touch on an object” and then change X position of the character by 20
That doesn’t really work, because when I’m pressing the button once, then release the touch/ stop pressing the button, the character keeps moving. I am familiar with GDevelop however I can’t find a solution to this

This is a basic error. When you touch somewhere it moves the cursor here and leaves it there, so if you only use cursor on object, the cursor will still be touching it after the touch ended. What you want to do is add the condition “mouse or touch is down”.

1 Like