Positioning Actors for iPhone5/Legacy

I'm wanting to position an actor so it is always at the bottom of the screen (in portrait mode).

How can I do this so it works for both iPhone 5 and Legacy iPhone? I thought maybe I'd use game.Screen.Size.Height - but it appears that this doesn't actually represent the physical device's screen size, it seems to just be set by the games settings.

Any suggestions?

Comments

  • HappyBadgersHappyBadgers Member Posts: 53
    I'm thinking we need some kind of rule like [if device.legacy = true : do this] but I don't see anything like that...
  • MantoManto Member Posts: 796
    Use Device>Screen>Size. I use these two rules:

    Check if iPhone legacy
    if game.Screen.Size.Width = 480
    do something

    Check if iPhone 5
    if game.Screen.Size.Width = 568
    do something
  • HappyBadgersHappyBadgers Member Posts: 53
    Use Device>Screen>Size. I use these two rules:

    Check if iPhone legacy
    if game.Screen.Size.Width = 480
    do something

    Check if iPhone 5
    if game.Screen.Size.Width = 568
    do something
    That's what I thought too, but in my testing it was showing that screen width was 568 no matter what. Maybe this is a problem with preview? I didn't try it on a device....

  • HappyBadgersHappyBadgers Member Posts: 53
    I just checked on a device, and even on my 3GS the width still comes across as 568.
    Back to square one?
  • MantoManto Member Posts: 796
    edited November 2012
    Weird. I got 568 on my iPhone 5 and 480 on 3GS. Try using height instead of width.
  • lycettebroslycettebros Member, PRO Posts: 1,598
    If it is portrait then it is height you check probably....interesting question.
  • HappyBadgersHappyBadgers Member Posts: 53
    Are you using game salad viewer, or actually publishing it with testflight or something?
  • MantoManto Member Posts: 796
    Working great on both GS Viewer and published one.
Sign In or Register to comment.