#how to make the window unchanged the scenes view

2 messages · Page 1 of 1 (latest)

raven wadi
#

How do i make the window player start out at full screen but also will keep showing the same amount of stuff no matter how big the screen is?

For more info im talking about whenever you go into test mode

primal mesa
#

the canvas_items or viewport stretch modes are probably what you're looking for. using either of these will keep the camera's view limited to the area shown in the editor, regardless of any window size changes.

if the stretch mode is set to viewport then the actual rendered resolution of the game will be stuck to whatever it started as when the window opened. so if you set the window's initial size to 320x180 for example, you would see a viewport of that resolution just scaled up to fit into the window's current size.

if the stretch mode is set to canvas_items then the rendered resolution of the game will scale up with the window size, while keeping the same viewable area. this mode is a lot more flexible, so it's generally the best option, even when making a pixel art game, since you can use SubViewports to more directly control how the game's visuals are being processed and scaled.