Tween#repeat()

repeat(total, repeat, index) → {Phaser.Tween} Sets the number of times this tween will repeat.If you have not yet called Tween.to or Tween.from at least once then this method will do nothing, as there are no tweens to repeat.If you have child tweens and pass -1 as the index value it sets the number of times they'll repeat across all of them.If you wish to define how many times this Tween and all children will repeat see Tween.repeatAll. Parameters Name Type Argument Default Description total

Tween#properties

properties : Object Target property cache used when building the child data values. Source code: tween/Tween.js (Line 125)

Tween#pause()

pause() Pauses the tween. Resume playback with Tween.resume. Source code: tween/Tween.js (Line 643)

Tween#onUpdateCallback()

onUpdateCallback(callback, callbackContext) → {Phaser.Tween} Sets a callback to be fired each time this tween updates. Parameters Name Type Description callback function The callback to invoke each time this tween is updated. Set to null to remove an already active callback. callbackContext object The context in which to call the onUpdate callback. Returns Phaser.Tween - This tween. Useful for method chaining. Source code: tween/Tween.js (Line 626)

Tween#pendingDelete

[readonly] pendingDelete : boolean True if this Tween is ready to be deleted by the TweenManager. Source code: tween/Tween.js (Line 70)

Tween#onRepeat

onRepeat : Phaser.Signal The onRepeat event is fired if the Tween and all of its children repeats. If this tween has no children this will never be fired.It will be sent 2 parameters: the target object and this tween. Source code: tween/Tween.js (Line 92)

Tween#onStart

onStart : Phaser.Signal The onStart event is fired when the Tween begins. If there is a delay before the tween starts then onStart fires after the delay is finished.It will be sent 2 parameters: the target object and this tween. Source code: tween/Tween.js (Line 77)

Tween#onChildComplete

onChildComplete : Phaser.Signal The onChildComplete event is fired when the Tween or any of its children completes.Fires every time a child completes unless a child is set to repeat forever.It will be sent 2 parameters: the target object and this tween. Source code: tween/Tween.js (Line 100)

Tween#onComplete

onComplete : Phaser.Signal The onComplete event is fired when the Tween and all of its children completes. Does not fire if the Tween is set to loop or repeatAll(-1).It will be sent 2 parameters: the target object and this tween. Source code: tween/Tween.js (Line 107)

Tween#onLoop

onLoop : Phaser.Signal The onLoop event is fired if the Tween, or any child tweens loop.It will be sent 2 parameters: the target object and this tween. Source code: tween/Tween.js (Line 85)