window_get_fullscreen

Returns whether the game is run in fullscreen or not.

Syntax:

GML Code Example

window_get_fullscreen();


Returns: Boolean


Description

This function returns whether the game window is in fullscreen mode (true) or not (false).


Example:

GML Code Example

if window_get_fullscreen()
    {
    draw_text(32, 32, "Fullscreen is ON");
    }
 else    {
    draw_text(32, 32, "Fullscreen is OFF");
    }
 

The above code will check to see if the window is in full screen mode or not and draw a text message depending on the returned value.





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