Phaser API Documentation

  Version: 

Member of: Phaser.Tweens.Tween

updateTo(key, value, [startToCurrent])

Description:

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).

Parameters:

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?

Returns:
Description:
  • This Tween instance.
Since: 3.0.0