window_get_width

Gets the width of the window.

Syntax:

window_get_width();


Returns: Real


Description

With this function you can get the current width (in pixels) of the game window.


Example:

ww = window_get_width();

The above code will store the current window width in the variable "ww".


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