Adds a new time line.



Returns: Real


With this function you can add a new (empty) time line into your game. the function returns the index of this new time line which should be stored in a variable for use in all further function calls that involve this new time line. You should also be sure to use the function timeline_delete whenever you no longer wish to use the time line (like at the end of the room) so as to prevent any possible memory leaks that could slow down or crash your game.


global.tl = timeline_add();

The above code creates a new time line and stores its index in the variable "global.tl".

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