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.
window_get_width();
ww = window_get_width();
The above code will store the current window width in the variable "ww".