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 (14 points)

1 Answer

0 votes

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

by (113 points)
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.