layer_sequence_y

With this function you can set the position along the Y (vertical) 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 Y position to set and the sequence will be moved to the new position.

 

Syntax:

layer_sequence_y(sequence_element_id, pos_y)

ArgumentTypeDescription
sequence_element_idSequence Element IDThe unique ID value of the sequence element to target
pos_yRealThe Y 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.