I'm trying to add touch controls to a Sonic game, but if I press the "roll" button, the animation will flicker between the "roll" and "run" animations.
My code for this:
Any idea how to fix this?
Develop games in your browser. Powerful, performant & highly capable.
is your animation set to loop?