Concatenate animations
OkieDokie
Hello

I would like to play a sprite sheet animation, and exactly when that animation is finished I would like to play next animation, with no gap.

I tried setTimeout because I know how long is the first animation, but it is not very precise and sometime there is small gap between animations.

Do you know better way to do this with Wade.js?
1 Comment
nicoX

Hello OkieDokie

 

I've done it like this, I don't know if there's any better way (Gio will advise):

character.playAnimation('anim1');character.onAnimationEnd = function(){    character.playAnimation('anim2');};
Post a reply
Add Attachment
Submit Reply
Login to Reply