Phaser API Documentation

  Version: 

Member of: Phaser.Tweens.Tween

setStateFromStart(tween, tweenData, diff)

Description:

Internal method used as part of the playback process that sets a tween to play from the start.

Parameters:

name type description
tween Phaser.Tweens.Tween

The Tween to update.

tweenData Phaser.Types.Tweens.TweenDataConfig

The TweenData property to update.

diff number

Any extra time that needs to be accounted for in the elapsed and progress values.

Returns:
Description:

The state of this Tween.

Type:
  • number
Since: 3.0.0