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
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:
Link to sample code:
Link to pixel perfect version of script:
Neat! Thanks for sharing!