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 return the current scale along the X axis of the sequence element in the game room.
layer_sequence_get_xscale(sequence_element_id)
Argument | Type | Description |
---|---|---|
sequence_element_id | Sequence Element ID | The unique ID value of the sequence element to target |
var _xs = layer_sequence_get_xscale(title_sequence)
if (_xs < 1)
{
_xs += 0.01;
layer_sequence_xscale(title_sequence, _xs);
}
The above code retrieves the current scale along the X axis of the sequence element with the ID stored in the variable "title_sequence", and if it's less than 1, then 0.01 is added to the current X scale.