window_get_x

Gets the x position of the window inside the browser/visible area of the screen.

Syntax:

window_get_x();


Returns: Real


Description

With this function you can get the x position (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.


Example:

wx = window_get_x();

The above code stores the current x axis window position in the variable "wx".


Back: The Game Window
Next: window_get_y
© Copyright YoYo Games Ltd. 2018 All Rights Reserved