Godot version 4.3
I am quite new to Godot, and I am having issues with resizing the window and applying the correct stretch mode. Right now the game launches in the correct aspect ratio and size, but when I resize the window, all the sizes of elements on the screen stay the same, and I just get a black border around the game. With the stretch mode set to viewport I thought it should make all the elements bigger on resize, while keeping the original aspect ratio.
I can achieve the desired result manually by resizing the camera to (for instance) twice its size and increasing the zoom.
Is there something that I am missing that is disabling the stretch mode?
I have a attached a screenshot of my current settings
Yes! But on a proper read I changed the scale mode settings to fractional which seemed to do the trick. Since I am working on a pixel art game, this is not ideal though. I thought it not scaling maybe had something to do with it rounding down on integer mode, so I tried starting with a smaller window originally, and then resizing it up, but this still left black bars on the screen.
So if I understand it correctly, you should set scaling manually when working with pixel art (integer scaling), by setting the scale factor through code? if so does this mean I cant keep an aspcet ratio? Since this only works when you have stretch mode on something other then disabled.
I am still quite confused by the options here regarding having a square aspect ratio and working with pixel art. Would love some more help. in any way thanks very much! 