Hi Alex,
you shouldn’t try to ‘run’ the animation from inside the event - otherwise nothing else would ever happen as you would never get out of that event. You should probably make the click event change a variable such as ‘animationRunning’ and then in the frameEnter event do something like:
if animationRunning then animationTime = animationTime + delta walkAnimation:apply(skeleton, animationTime, true) skeleton:updateWorldTransform() end
Hope this helps,
Matias