Phaser API Documentation

  Version: 
TweenCallbacks
Properties:
name type arguments description
onActive Phaser.Types.Tweens.TweenOnActiveCallback <optional>

A function to call when the tween becomes active within the Tween Manager.

onStart Phaser.Types.Tweens.TweenOnStartCallback <optional>

A function to call when the tween starts playback, after any delays have expired.

onComplete Phaser.Types.Tweens.TweenOnCompleteCallback <optional>

A function to call when the tween completes.

onLoop Phaser.Types.Tweens.TweenOnLoopCallback <optional>

A function to call each time the tween loops.

onPause Phaser.Types.Tweens.TweenOnPauseCallback <optional>

A function to call each time the tween is paused.

onResume Phaser.Types.Tweens.TweenOnResumeCallback <optional>

A function to call each time the tween is resumed.

onRepeat Phaser.Types.Tweens.TweenOnRepeatCallback <optional>

A function to call each time the tween repeats. Called once per property per target.

onStop Phaser.Types.Tweens.TweenOnStopCallback <optional>

A function to call when the tween is stopped.

onUpdate Phaser.Types.Tweens.TweenOnUpdateCallback <optional>

A function to call each time the tween steps. Called once per property per target.

onYoyo Phaser.Types.Tweens.TweenOnYoyoCallback <optional>

A function to call each time the tween yoyos. Called once per property per target.

Type:
object
Since: 3.60.0