Sets the speed that a time line will run at.



Returns: Real


Normally, in each step the position in the time line is increased by 1, however you can change this amount by setting this variable to a different value. You can use real numbers (like 0.5, or 2.4 for example) and if the value is larger than one, several moments can happen within the same time step (they will all be performed in the same order as defined for the time line, so no actions will be skipped). You can also use a negative value to let the time line play backwards (until it reaches moment 0, at which point it will stop unless the timeline_loop variable is set to true).


if !timeline_running
   timeline_running = true;
   timeline_speed = 0.5;

The above code will check and see if the instance is running its associated time line and if it is not, it will start the time line running at half speed.

Back: Timelines
Next: timeline_position
© Copyright YoYo Games Ltd. 2018 All Rights Reserved