Phaser API Documentation

  Version: 
timeScale: number

Description:

The Time Scale factor.

You can adjust this value to modify the passage of time for the animation that is currently playing. For example, setting it to 2 will make the animation play twice as fast. Or setting it to 0.5 will slow the animation down.

You can change this value at run-time, or set it via the PlayAnimationConfig.

Prior to Phaser 3.50 this property was private and called _timeScale.

Type:
number
Default: 1
Since: 3.50.0