YoYo Games Wiki

display_mouse_get_y()

From YoYoGames Wiki

Description

This function returns the y position of the mouse within the entire display of your screen

Returns

  • (integer): y-position of the mouse

Explanation

This function returns the y position of the mouse within the entire display of your screen. If you want the value to be relative to the game window, use window_mouse_get_y. And if you want the value to be relative to the room itself use the variablemouse_y.

See Also