timeline_loop

Sets whether a time line should loop or not.

Syntax:

timeline_loop;


Returns: Boolean


Description

This variable will return whether the time line is looping (true) or not (false). You can change this variable to switch looping on or off and it works with a negative time line speed (if the time line position goes below 0 it will start again at the last defined moment).


Example:

if !timeline_loop timeline_loop = true;

The above code checks to see of the time line currently assigned to an instance will loop or not and if it doesn't it sets it to true.


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