Game window and resolution
Provides actions and conditions to manipulate the game window. Depending on the platform on which the game is running, not all of these features can be applied. Read more explanations about it.
Center the game window on the screen
This action centers the game window on the screen. This only works on Windows, macOS and Linux (not when the game is executed in a web-browser or on iOS/Android).
Automatically adapt the game resolution
Set if the game resolution should be automatically adapted when the game window or screen size change. This will only be the case if the game resolution resize mode is configured to adapt the width or the height of the game.
This action activates or deactivates fullscreen.
Game resolution resize mode
Set if the width or the height of the game resolution should be changed to fit the game window - or if the game resolution should not be updated automatically.
Changes the resolution of the game, effectively changing the game area size. This won't change the size of the window in which the game is running.
This action changes the margins, in pixels, between the game frame and the window borders.
Game window size
Changes the size of the game window. Note that this will only work on platform supporting this operation: games running in browsers or on mobile phones can not update their window size. Game resolution can still be updated.
This action changes the title of the game's window.
Check if the game is currently in fullscreen.
||Height of the scene window (or scene canvas for HTML5 games)|
||Width of the scene window (or scene canvas for HTML5 games)|
||Height of the screen (or the page for HTML5 games in browser)|
||Width of the screen (or the page for HTML5 games in browser)|
This page is an auto-generated reference page about the Game window and resolution feature of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop features here.