Events#onAnimationComplete

onAnimationComplete : Phaser.Signal

This signal is dispatched if the Game Object has the AnimationManager component,
and an Animation has been stopped (via animation.stop() and the dispatchComplete argument has been set.
You can also listen to Animation.onComplete rather than via the Game Objects events.
It is sent two arguments:
{any} The Game Object that received the event.
{Phaser.Animation} The Phaser.Animation that was stopped.

Source code: gameobjects/components/Events.js (Line 249)
doc_phaser
2017-02-14 10:45:43
Comments
Leave a Comment

Please login to continue.