I want this effect in my game: When the finger touches the arrow, the character moves. When the finger leaves the arrow, the character stops. However, after lifting my finger, the character keeps moving.
This issue only occurs on mobile. Everything works fine on PC.
How can I fix this issue?
BUUUUUUUUUUUUUUUUUUUUT
It would be wiser to add this behavior to your button
And now you check in condition
1 Like
When you touch the screen, the mouse if moved to where the touch is made. When you stop touching the screen, the mouse stays where it is. The condition you use is The mouse is on
, which it is over the last button touched because the mouse doesn’t move.
To fix this, either use @ZeroX4’s solution, or add the condition Mouse button pressed or touch is held
to each of the events in the screen shot.
1 Like