0 votes

As a more specific case, I'm trying to make a game for HTML5 and I just want it to scale to the iFrame that itch io puts it in.

When I use OS.window_size it gives me the dimensions of my screen. Now understandably I can just scale the game manually to the set size of the iFrame but I would prefer to have it done dynamically. Thanks!

in Engine by (58 points)

1 Answer

+2 votes
Best answer

Just call OS.set_window_maximized(true)

by (1,082 points)
selected by

THANK YOU SO MUCH :D

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.