Const
The Tween Repeat Event.
This event is dispatched by a Tween when one of the properties it is tweening repeats.
This event will only be dispatched if the Tween has a property with a repeat count set.
If a Tween has a repeatDelay set, this event will fire after that delay expires.
repeatDelay
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('repeat', listener), i.e.:
Tween.on('repeat', listener)
var tween = this.tweens.add({ targets: image, x: 500, ease: 'Power1', duration: 3000, repeat: 4});tween.on('repeat', listener); Copy
var tween = this.tweens.add({ targets: image, x: 500, ease: 'Power1', duration: 3000, repeat: 4});tween.on('repeat', listener);
The Tween Repeat Event.
This event is dispatched by a Tween when one of the properties it is tweening repeats.
This event will only be dispatched if the Tween has a property with a repeat count set.
If a Tween has a
repeatDelayset, 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('repeat', listener), i.e.: