QUESTION - What would be a solid approach on how to place objects on a background image precisely, but in a way that takes into account the following ideally seamlessly (i.e. no need for any if/then’s re which device/resolution you are on)
a) different device screen resolutions
b) the auto-scaling mode (e.g. letterbox say)
Could assume that landscape only would be supported.
FURTHER BACKGROUND:
Let’s say for a given level you have a background image. Assume this is the largest resolution (I’m assuming the best approach is to design images with the max resolution, and then to create copies of it at the required resolutions). So say somewhere on the background image is a closed door, but then during the game you want to overlay at this specific point an open door…after it’s open.
So what is the best approach re when you create/show/position the open door?
Simplistically is it just to place it based on percentage of the screenW/screenH for the current view? But then would there need to be any adjustment to this simply formula to handle a case where the image on device X has some black at top/bottom due to letterbox scaling? Or do you keep the simply percentage based approach and then make sure there is a correct size image for every possible device and use auto-scaling (not sure how well this would work in the Android space)?
[import]uid: 140210 topic_id: 25042 reply_id: 325042[/import]
[import]uid: 52491 topic_id: 25042 reply_id: 102005[/import]