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.
layer_sequence_y(sequence_element_id, pos_y)
Argument | Type | Description |
---|---|---|
sequence_element_id | Sequence Element ID | The unique ID value of the sequence element to target |
pos_y | Real | The Y position to move the sequence element to |
N/A
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.