fkkcloud Posted March 9, 2016 Share Posted March 9, 2016 Hi, Is there a way to stop at the last frame of the sprite animation? rather than just destroy as it ends? Link to comment Share on other sites More sharing options...
Zeterain Posted March 10, 2016 Share Posted March 10, 2016 Sprites have an event called onAnimationComplete that you can use to detect the end of an animation. (http://phaser.io/docs/2.4.6/Phaser.Events.html#onAnimationComplete) sprite.events.onAnimationComplete You could add an event listener to this event that stops the animation on the sprite. That sounds like it would solve your problem. Link to comment Share on other sites More sharing options...
Recommended Posts