layer_sequence_get_yscale

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 Y axis of the sequence element in the game room.

 

Syntax:

layer_sequence_get_yscale(sequence_element_id)

ArgumentTypeDescription
sequence_element_idSequence Element IDThe unique ID value of the sequence element to target

 

Returns:

Real

 

Example:

var _ys = layer_sequence_get_yscale(title_sequence)
if (_ys < 1)
{
    _ys += 0.01;
    layer_sequence_yscale(title_sequence, _ys);
}

The above code retrieves the current scale along the Y 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 Y scale.