mouse_y

The current y position of the mouse.

Syntax:

mouse_y;


Returns: Real


Description

This read-only variable returns the current y axis position of the mouse within the room.


Example:

y = median(64, mouse_y, room_height - 64);

The above code will maintain the instance at the mouse y position as long as it is within the limits of 64 pixels from the top and bottom of the room.


Back: Mouse Input
Next: mouse_button
© Copyright YoYo Games Ltd. 2018 All Rights Reserved