Phaser API Documentation

  Version: 
setTimeScale(value)

Description:

Sets the value of the time scale applied to this Tween. A value of 1 runs in real-time. A value of 0.5 runs 50% slower, and so on.

The value isn't used when calculating total duration of the tween, it's a run-time delta adjustment only.

This value is multiplied by the TweenManager.timeScale.

Parameters:

name type description
value number

The time scale value to set.

Returns:
Description:

This Tween instance.

Since: 3.60.0