Suppose I was making a hidden object game. How would I choose the correct size for my background image so it doesn’t distort with different screen sizes and resolutions, while keeping all of the hidden objects viewable within the viewport?
Have you seen the links in this Godot QA answer? The second link in the answer seems to be showing exactly what you are looking for :smile:
I have read through that a few times, but it still has me confused. I’ll have to download the sample game that was mentioned so I can try to understand how it works.
I found a working example posted by Chanon at github forums.
Link to post: https://github.com/godotengine/godot/issues/6506
Link to sample code: https://github.com/godotengine/godot/files/1812268/scaleExample2.zip
Link to pixel perfect version of script: https://godotengine.org/qa/25504/pixel-perfect-scaling?show=26997#a26997
Neat! Thanks for sharing!