Phaser API Documentation

  Version: 

Member of: Phaser.Tweens.Tween

update(timestamp, delta)

Description:

Internal method that advances the Tween based on the time values.

Parameters:

name type description
timestamp number

The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.

delta number

The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.

Returns:
Description:

Returns true if this Tween has finished and should be removed from the Tween Manager, otherwise returns false.

Type:
  • boolean
Since: 3.0.0