timeline_position

Sets the position for the next step of a time line.

Syntax:

timeline_position;


Returns: Real


Description

This variable holds the current position (moment) a time line is currently at. You can change this value to skip parts of the time line, or to repeat parts or to start the time line again from the beginning.


Example:

if !timeline_running
   {
   timeline_position = 0;
   timeline_running = true;
   }

The above code will check to see if the instance is running a time line, and if it is not then it resets the assigned time line to start at the first moment and then starts it.


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