0 votes

Hello!

I'm looking for a way to always show the same amount of screen, even if you resize the window, or play the game on a larger monitor. I'm using a Camera2d for this.

For an example, I have a drawing:
drawing
The red part is the resized window/larger screen, and the blue is the desired area to show.
The black squares are objects for reference, to show how this an affect gameplay; think of them as items, enemies, other players, etc.

How can I program the Camera to only show the blue area, regardless of window size?

Godot version v3.3.4.stable.official
in Engine by (21 points)

1 Answer

+2 votes
Best answer

In your Project Settings go to Display/Window and in Stretch /Aspect try keep height and other mods.

by (198 points)
selected by
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 Frequently asked questions and 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 [email protected] with your username.