Phaser API Documentation

  Version: 

Member of: Phaser.Types.Tweens

TweenOnRepeatCallback(tween, target, key, current, previous, param)

Parameters:

name type description
tween Phaser.Tweens.Tween

A reference to the Tween.

target any

The current target of the Tween. If this Tween has multiple targets, this will be a reference to just the single one being updated prior to this callback.

key string

The property that is being updated on the target.

current number

The current value of the property being set on the target.

previous number

The previous value of the property being set on the target.

param any

Any value passed in onRepeatParams.

Type:
function
Since: 3.18.0