window_mouse_get_y

Returns the y coordinate of the mouse in the window.

Syntax:

window_mouse_get_y();


Returns: Real


Description

With this function you can get the y position of the mouse cursor (in pixels) within the browser if it is an HTML5 game or within the display if it is a Windows, Ubuntu (Linux) or MacOS game.

NOTE: For regular mouse functions see the section on Mouse Input.


Example:

wy = window_mouse_get_y();

The above code stores the current y axis window position of the mouse in the variable "wy".


Back: The Game Window
Next: window_set_caption
© Copyright YoYo Games Ltd. 2017 All Rights Reserved