window_get_width

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

NOTE On GX.games, this returns the width of the browser area.

 

Syntax:

window_get_width();

 

Returns:

Real

 

Example:

ww = window_get_width();

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