Skilled Build Posted December 19, 2015 Share Posted December 19, 2015 I see that there is an onComplete method on the Animations but I can't figure out how to use it. I want to run a function everytime an animation has been completed. Can someone explain how this can be done, my way of doing it now has me watching for the isFinished property to equal true, but this seems like the wrong way to do it. Link to comment Share on other sites More sharing options...
vohogames Posted December 20, 2015 Share Posted December 20, 2015 Hello, Here is the example of what you are asking for.http://phaser.io/examples/v2/animation/animation-events anim.onComplete.add(animationStopped, this); animationStopped is the function that is called when animation is completed. Link to comment Share on other sites More sharing options...
Recommended Posts