No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
With this function you can center the game window in the display
when the target module is Windows, Ubuntu (Linux) or MacOS, or you
can center it in the browser if the target module is HTML5. This
function has no effect on any other device.
NOTE: If you have resized the game window (for example, by switching from full screen to windowed), and wish to center the new window, this function should be called in an alarm at least one step later than the window size change, otherwise it will not work correctly.