I want my character to duck for a second after the jump. He has to finish the animation even if left/right is pressed by the player in the meantime. I use variables to determine if he's facing left or right but i cant seem to do it right. Any ideas?
how about disabling the input while your character is ducking ?
Puntodamar - can i disable "on touch" events also? Seems promising
Develop games in your browser. Powerful, performant & highly capable.
i think no, but you can use boolean,
when the player touch something, use boolean to determine whether your character is ducking or not.