layer_sequence_x

With this function you can set the position along the X (horizontal) axis of the room for the given sequence element. You supply the sequence element ID as returned by layer_sequence_create() or by one of the layer element functions along with the X position to set and the sequence will be moved to the new position.

 

Syntax:

layer_sequence_x(sequence_element_id, pos_x)

ArgumentTypeDescription
sequence_element_idSequence Element IDThe unique ID value of the sequence element to target
pos_xRealThe X position to move the sequence element to

 

Returns:

N/A

 

Example:

if (layer_sequence_exists(my_seq))
{
    layer_sequence_x(my_seq, x);
    layer_sequence_y(my_seq, y);
}

The above code checks to see if the sequence element referenced in the variable "my_seq" exists, and if it does it sets the x/y position to the that of the instance running the code.