timeline_get_name

Gets the name of a given time line.

Syntax:

timeline_get_name( ind );


Argument Description
ind The index of the time line to check the name of.


Returns: String


Description

This function can be used to get the name of a time line as a string. if the time line has been created dynamically using the timeline_add function, the name returned will have the format "__newtimelineN" where "N" is the number of the time line (starting from 0). Please note that this is only a string and cannot be used to reference the timeline directly - for that you would need the timeline index. You can, however, use this string to get the timeline index using the returned string along with the function asset_get_index().


Example:

str = timeline_get_name(global.tl);

The above code will store the name of the time line indexed in the variable "global.tl".


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