window_get_width

Gets the width of the window.

Syntax:

GML Code Example

window_get_width();


Returns: Real


Description

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


Example:

GML Code Example

ww = window_get_width();

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here