Const
The Tween Complete Event.
This event is dispatched by a Tween when it completes playback entirely, factoring in repeats and loops.
If the Tween has been set to loop or repeat infinitely, this event will not be dispatched unless the Tween.stop method is called.
Tween.stop
If a Tween has a completeDelay set, this event will fire after that delay expires.
completeDelay
Listen to it from a Tween instance using Tween.on('complete', listener), i.e.:
Tween.on('complete', listener)
var tween = this.tweens.add({ targets: image, x: 500, ease: 'Power1', duration: 3000});tween.on('complete', listener); Copy
var tween = this.tweens.add({ targets: image, x: 500, ease: 'Power1', duration: 3000});tween.on('complete', listener);
The Tween Complete Event.
This event is dispatched by a Tween when it completes playback entirely, factoring in repeats and loops.
If the Tween has been set to loop or repeat infinitely, this event will not be dispatched unless the
Tween.stopmethod is called.If a Tween has a
completeDelayset, this event will fire after that delay expires.Listen to it from a Tween instance using
Tween.on('complete', listener), i.e.: