I am having trouble with the character movement by touching a button.
What I want to achieve is to make the character move when the button is touched.
When the button is no longer touched, the character should stop.
This last thing is difficult to achieve.
In practice the character moves when touching the button, but when the button is released, the character continues to move.
Only when I touch a spot elsewhere on the screen, the character stops.
I have tried many different set-ups with:
The cursor/touch is on button
Touch or Left mouse button is down
But I cannot seem to get it work properly.
Can anyone help?
Thanks in advance