How to have my game screen fit my screen?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mmarramarco
:warning: Old Version Published before Godot 3 was released.

I am new to Godot. I want to make something that i believe should be the easiest option available.

Here is my problem : I have a game with a defined screen. I just want to automatically have it fit the screen of the users (and in developpement, mine). I didn’t find anything in the options, and the viewport tutorials didn’t help me.

EDIT : I tried using OS.set_window_size with kind of good result, but still, my game window doesn’t pop up in full screen (i still need to click on the button next to the red cross of my window to make it expand and fill my screen)

:bust_in_silhouette: Reply From: volzhs

OS.set_window_maximized(true)

https://ih0.redbubble.net/image.15477200.5065/flat,800x800,075,f.u2.jpg

Thank you ! I knew I missed somehting, somehow I didn’t find that dunction earlier…

mmarramarco | 2017-11-27 15:33