Phaser API Documentation


Member of: Phaser.Tweens.Tween

updateTo(key, value, [startToCurrent])


Updates the 'end' value of the given property across all matching targets.

Calling this does not adjust the duration of the tween, or the current progress.

You can optionally tell it to set the 'start' value to be the current value (before the change).


name type arguments Default description
key string

The property to set the new value for.

value *

The new value of the property.

startToCurrent boolean <optional> false

Should this change set the start value to be the current value?

  • This Tween instance.
Since: 3.0.0