Const
The Tween Loop Event.
This event is dispatched by a Tween when it loops.
This event will only be dispatched if the Tween has a loop count set.
If a Tween has a loopDelay set, this event will fire after that delay expires.
loopDelay
The difference between loop and repeat is that repeat is a property setting, where-as loop applies to the entire Tween.
loop
repeat
Listen to it from a Tween instance using Tween.on('loop', listener), i.e.:
Tween.on('loop', listener)
var tween = this.tweens.add({ targets: image, x: 500, ease: 'Power1', duration: 3000, loop: 6});tween.on('loop', listener); Copy
var tween = this.tweens.add({ targets: image, x: 500, ease: 'Power1', duration: 3000, loop: 6});tween.on('loop', listener);
The Tween Loop Event.
This event is dispatched by a Tween when it loops.
This event will only be dispatched if the Tween has a loop count set.
If a Tween has a
loopDelayset, this event will fire after that delay expires.The difference between
loopandrepeatis thatrepeatis a property setting, where-asloopapplies to the entire Tween.Listen to it from a Tween instance using
Tween.on('loop', listener), i.e.: