Skip to content

window_get_width

drewmccluskey edited this page Feb 12, 2019 · 2 revisions

window_get_width

Returns window width

Syntax:

window_get_width()

Returns: int

Description:

Returns current window width.

Example:

int win_width = window_get_width();
show_debug_message(win_width.ToString());

The above code will set int win_width to the width of the current game window and then create a pop-up message displaying the current width.

Back to window-functions

Clone this wiki locally