layer_sequence_pause

With this function you can pause the playback of the given sequence. You supply the sequence element ID as returned by layer_sequence_create() or by one of the layer element functions and the function will pause the sequence until you begin playback again using the function layer_sequence_play().

 

Syntax:

layer_sequence_pause(sequence_element_id)

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

 

Returns:

N/A

 

Example:

var _seq = layer_sequence_create("Background", 0, 0, seq_AnimatedBackground);
if global.Pause
{
    layer_sequence_pause(_seq);
}

The above code creates a new sequence and stores its ID in a local variable. It then checks to see if the game is paused, and if it is it pauses the playback of the sequence.