I’ve gone thought the Godot 2D course and was trying to put the 3 projects into one to publish as a challenge, but the Martian Mike project is making it difficult. It has the smaller viewport of 480x270 than the other demos. This is the issue, how do I change the Project settings Viewport W/H in between scenes?
I tried:
ProjectSettings.set_setting("display/window/size/viewport_width", 480)
ProjectSettings.set_setting("display/window/size/viewport_height", 270)
and
get_viewport().size = Vector2(480, 270)
Nothing worked as I wanted. I have it start with a main title, then a button for each “project” the default resolution works for the first 2 projects but not Martian Mike.
What should I look at first?
What it should look like:
What it looks like with default values: