Hi,
Is there a simple method to instruct a Godot v4.0 Beta 8+ HTML5 game to go full screen? I have a GUI icon system already operational, just need the command(s) to switch to full screen and back.
If you would like to look at our open-source game project then it is below:
100% MIT Open-Source GitHub Repository: https://github.com/BetaMaxHero/GDScript_Godot_4_T-Story
Let us know, thanks! Thanks!
Jesse
Maybe setting the Window mode property to MODE_FULLSCREEN? https://docs.godotengine.org/en/latest/classes/class_window.html#class-window-property-mode https://docs.godotengine.org/en/latest/classes/class_window.html#enum-window-mode
DaveTheCoder Actually have this problem on my ZenGames. How do you code this in your main scene from say, a separate global function?
I just tried this, and it worked in the Godot editor (Godot 4.0-beta8):
var window: Window = get_tree().get_root() window.mode = Window.Mode.MODE_FULLSCREEN
I haven't tried it with an exported game.