0 votes

Every time the Viewport (Resolution of the game) is resized the camera sees more/less than before, this really screws with what I wan't the player to see.

I know you can set a resolution to be constant, but then you lose compatibility to other displays, or your game has to be always in window mode.

in Engine by (20 points)

1 Answer

0 votes

Use the 2d stretch mode as explained in the Multiple resolutions documentation. This will scale 2D elements to match the window size (relative to the base window size) and is generally the scaling option you want to use in a non-pixel-art game.

by (12,869 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 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.