layer_sequence_is_finished

With this function you supply the sequence element ID - as returned by layer_sequence_create() or by one of the layer element functions - and it will check if the sequence is finished playing or not, returning true if it is, and false if it is not. Note that this is only applicable when the sequence is not set to loop or ping-pong in the playback mode.

 

Syntax:

layer_sequence_is_finished(sequence_element_id)

Argument Description
sequence_element_id The unique ID value of the sequence element to target

 

Returns:

N/A

 

Example:

if layer_sequence_is_finished(title_sequence) != 0
    {
    alarm[0] = room_speed * 3;
    layer_sequence_play(title_sequence);
    }

The above code checks if the sequence element ID stored in the variable "title_sequence" is finished, and if it is it starts it playing again and sets an alarm.