timeline_clear

Clears the time line of all moments.

Syntax:

timeline_clear(ind);


Argument Description
ind The index of the time line to clear.


Returns: N/A


Description

With this function you can clear a specific time line of "moments", removing all codes and actions for that time line and leaving it empty.


Example:

if timeline_position > 200
   {
   timeline_clear(global.tl);
   timeline_index = -1;
   }

The above code will clear the specified time line indexed by the variable "global.tl" of all moments when a specific moment has been passed.


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