Different Apple Devices Rules for Screen (not asking for UB)

Hello to GS Community,

I would like to ask what expression do I have to put if I want an actor interpolate its Y-position from 900 to 596 when developing for iPad,iPhone4 and iPhone 5?

I made the expression interpolate self.position.Y to 596 while this coordinates are true for iPad (I am developing on iPad Landscape platform right now but want to make it UB so it can be played on iPad and iPhones as well), they are invalid for iPhones because it will be way higher for the iPhones' resolutions.

I think I should use something like game.scene.width/2 or something but can you give me a clue about it?

Thank you

Comments

Sign In or Register to comment.