0 votes

My laptop resolution: 1920x1080
My background image resolution: 1920x1080

Went to settings, selected full screen mode, and when I run the game, the background looks bigger as it's shown in the image. Here are some screenshots I took.


Didn't the image have to fit the screen? Cause they're both the same resolutions. Any trick I'm not understanding or something I have to do to fit it to the screen?

This applies to every image, background, character sprites, everything stretches and looks bigger when in full screen. Didn't code a thing, just went to project settings and selected full screen there.

Thanks in advance.

in Engine by (12 points)

1 Answer

+2 votes

In the Display settings, you either have to set the resolution of your game to 1920x1080, or to set the stretch mode to "disabled" so resizing doesn't stretches the game.

Note that not everyone has the same resolution or aspect ratio, so it will be likely that your background won't always be shown in fullscreen anyways.

by (28,791 points)

Did what you said, set 1920x1080 in display settings and set stretch mode to disabled. However, image is still bigger than it really is :(

If you're testing your game on Windows it might be your system DPI settings. I ran into a similar issue with a recent game I made, but doing the following made the game run as expected:

  1. Right click the exe and go to Properties
  2. Go to the Compatibility tab
  3. Check the box next to "Override high DPI scaling behavior"
  4. Apply

If you're not using Windows, unfortunately I don't know what it could be.

Just wanted to say thanks. Turns out high DPI was the issue.

In case anyone else has this issue, I didn't follow the instructions above but high DPI was the culprit. Went to display settings>Window>Allow Highdpi. This problem was driving me nuts.

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.