Deletes a given time line.


timeline_delete( ind );

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

Returns: N/A


With this function you can delete any time line from your game. if this time line was created in the GameMaker: Studio resource tree, please note that it is removed completely from the game and trying to call the indexed time line again after using this function will cause an error. If the time line was created dynamically using the timeline_add function, then this function should be used the moment that the time line is no longer needed to prevent any memory leaks that could slow down (and eventually crash) your game.


if timeline_exists(global.tl) timeline_delete(global.tl);

The above code checks to see if a time line exists and is indexed in the global variable "tl" and if so it then deletes that time line.

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