I created a simple virtual controller for my 2D Platformer Game, I have a Jump, Up, Left and Right button. The functions works well but when I hold the button for a seconds (example I hold/clicked/touched) the Right button my character move to the right but when I release my finger my character still moving right…
Yeah, that’s what my problem is, if I pressed or clicked the button for a long time and release my finger my character still moving to the right where it should be stopped.
I’ve never used this kind of command before. I may suggest to add an event for “stopping” the player when the touch is released, but maybe there is a better way