I’ve been having a problem with scaling, currently I’m developing a simple 2d pixel art game and I’ve been trying to add screen scaling so the sprites and ui will grow or shrink depending on the window size.
The problem is that if the scale mode in the project settings is set to integer whenever the screen is shrunk by dragging the screen or by setting the display window size it will cause everything to slide to the right like this video below.
Is there anyway to fix this or do I just have to deal with it
When using integer scaling with a stretch mode, resizing the window to be smaller than the base viewport size will clip the contents. Consider preventing that by setting Window.min_size to the same value as the base viewport size defined in display/window/size/viewport_width and display/window/size/viewport_height.
So yeah, unless you’re fine with setting a min_size it looks like you’ll just have to deal with it
I guess I didn’t see that when I read the docs, thanks for telling me that.
Just figured out that I have to render the game at a smaller resolution anyways to expand it later.