audio_emitter_get_y

This function returns the current y position of the given audio emitter.

 

Syntax:

audio_emitter_get_y(emitter);

ArgumentTypeDescription
emitterAudio Emitter IDThe index of the emitter to use.

 

Returns:

Real

 

Example:

if (audio_emitter_get_y(emitter_player) != x)
{
    audio_emitter_position(emitter_player, x, y, 0);
}

The above code checks the current y position of a given emitter and if it is not equal to the instance y position, it is set to the instance position.