display_get_width

Returns the width of the display.

Syntax:

GML Code Example

display_get_width();


Returns: Real


Description

This function will return the width of the display (in pixels). Note that on the HTML5 target, this value is the width of the browser window, rather than the physical display size.


Example:

GML Code Example

mywidth = display_get_width();

This would set the variable "mywidth" to the display's width.





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