audio_emitter_get_x

Returns the current x position of a given emitter.

Syntax:

audio_emitter_get_x(emitter);


Argument Description
emitter The index of the emitter to use.


Returns: Real


Description

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


Example:

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

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


Back: Audio Emitters
Next: audio_emitter_get_y
© Copyright YoYo Games Ltd. 2018 All Rights Reserved