#Resolution and resizing

1 messages · Page 1 of 1 (latest)

gentle gust
#

Hellooooo i'm working on making a game for the first time and it's a lot of fun but I have been stuck on a problem for a few hours now. I'm making my pause menu and Settings screen atm. And I have been kind of stuck on the whole resolution since yesterday. First it didn't work, then it messed with my buttons and well it's been fun but I would like to see the end soon

So I work in C# for the code and it's a messy buggy code but we work we learn

But I finally got the problem solved with resizing the window, but now the game doesn't follow along. So that's my problem, I want to resize the game to different resolutions, the window works but not the game.

I looked it up and in many places it told me to change my Project settings to Viewport and aspect Keep, and scale mode is Integer
I have tired playing around with it, setting my primary rez to 1920x1080 and so on. I have been looking through the code, I asked chatgpt to help me with the code as well, it came with a lot of ideas such as using the Player Camera2D and set it to Current in the Inspector, but I couldn't find it so I gave up and now i'm here

Idk if any of this makes any sense for you smart people but hope you can help me 🦉

wraith jay
#

Hi, i cant help much, since im new too, and UI is also my biggest issue hehe.

But this video is good with details:
https://www.youtube.com/watch?v=5Hog6a0EYa0

Lukky's video: https://youtu.be/sPfoZy-cW-E?si=p00RNhChrk1hEYrv
Get Beginner Godot Mentorship: https://www.fiverr.com/s/ZmNmR3k

For one HUNDRED godot tips in 20 minutes, watch these two videos!
https://youtu.be/1xjoExMwrMc?si=cGm2KDNh2L08NhfA
https://youtu.be/6SWoPVIxJyQ?si=azJOpMvKapfB2QpF

Have you tried to get into UI in Godot before only to...

▶ Play video
grave cosmos
gentle gust
#

Ignore the TIleMap that's the first thing I made before I knew that you couuld add more scenes

grave cosmos
#

What is the problem exactly then? The menu isn't centering or

gentle gust
#

No the menu is centering but when I resize the game while playing it, the game itself doesn't

#

Let me record it

#

As you can see only the window really changes, but the game doesn't stay in the center even if I have the CanvasLayer

grave cosmos
#

Right I see. In the project settings, there's the resize options that you've tried, what are they set to right now?

grave cosmos
#

Reset the integer property, that's probably causing issues

gentle gust
#

omfg I swear I have done that before............