Touch is pressed VS is down?
I'm having a small issue with attacking, when touch is pressed on a certain button on the screen, game.attk is true and my player attacks with the appropriate animation, on the attack button I have a timer saying after 0.5s change game.attk to false, run to completion, but if the player decides to hold down the button and not let go, my actor freezes on the last frame through the animation cycle and stays like that until the player lets go of the button.
How do I change it so that you can only tap the button and not hold it down. Ive tried doing this;
When game.attk is false
touch is pressed
change game.attk to true
after 0.5s change game.attk to false
doesn't work, actor can still hold down the button ?