Phaser API Documentation

  Version: 
setGlobalTimeScale(value)

Description:

Sets a new scale of the time delta for this Tween Manager.

The time delta is the time elapsed between two consecutive frames and influences the speed of time for this Tween Manager and all Tweens it owns. Values higher than 1 increase the speed of time, while values smaller than 1 decrease it. A value of 0 freezes time and is effectively equivalent to pausing all Tweens.

Parameters:

name type description
value number

The new scale of the time delta, where 1 is the normal speed.

Returns:
Description:

This Tween Manager.

Examples:
Since: 3.0.0