Setting Screen Size Dynamically based on Legacy iPhone or iPhone 5
Hey gang. Maybe I am missing it (probably), but with the new 10.1, how I can tell a scene to resize itself (I.e. Actors move to adjusted locations, etc,) based on whether it is running on an iPhone 5 or iPhone 4S and older? Seems like it would be a pretty standard function, but I can't seem to find it.
Ex. As my game scrolls horizontally, I will need it to dynamically resize based on the screen aspect ratio. I assume that this would be done with some kind of "If iPhone 5 then X, else, Y"
Simply cropping in won't work as it would create odd negative space. So far I only found an option that changes all my scenes to iPhone 5 aspect ratio or the old version. Thanks.
Ex. As my game scrolls horizontally, I will need it to dynamically resize based on the screen aspect ratio. I assume that this would be done with some kind of "If iPhone 5 then X, else, Y"
Simply cropping in won't work as it would create odd negative space. So far I only found an option that changes all my scenes to iPhone 5 aspect ratio or the old version. Thanks.
Answers
We should have a vid up shortly on this subject over at GSHelper.com.
Then whatever graphics need to move location they just check the boolean and move or not.
Tested only in preview and it works fine - you do not have to make an Adhoc. You can just set the relevant screen res in GS preview mode and hit the reload button to test if it works for that res setting (overscan etc.)
All help is, as always, appreciated.
UPDATE - Okay, I tried leaving my project on legacy and then using a rule to switch camera sizes. This didn't work at it displayed correctly on iPhone 4 and weirdly letterboxed on iPhone 5.
UPDATE 2 - Same thing happened in the other direction. So now I am flumoxed. Maybe I am just not understanding the idea of the crop function?