Sets the position of the window inside the browser/visible area of the screen.


GML Code Example

window_set_position(x, y);

Argument Description
x The x coordinate of where to position the window.
y The y coordinate of where to position the window.



With this function you can set the game window to a specific position within the display (on MacOS, Linux(Ubuntu) and Windows) or within the browser (HTML5).

NOTE: If your HTML5 game uses a custom index.html and that sets the canvas to a fixed position then this function will have no effect on the window position.


GML Code Example

window_set_position(0, 0);

The above code will position the game window in the upper left corner of the browser or display (depending on the target module being used).

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