anim_set_timescale(anim, timescale);
Argument name Type Description
anim Animation The animation
timescale real The value


Sets the factor that's used to scale time in the animation where:

  • 1 = normal speed (the default)
  • 0.5 = half speed
  • 2 = double speed
  • etc.

For example, if an animation's duration is 2 but its timescale is 0.5, it will take 4 seconds to finish. If you nest that animation in a timeline whose timeScale is 0.5 as well, it would take 8 seconds to finish. You can even tween the timescale to gradually slow it down or speed it up.