Help with screen res iPhone 5 and 4

Hi, I am making my game for the iPhone 5 and when I use overscan it zooms in too far and chops off the edge of the game.

Now If I fix this it will obviously then look funny on the 5.

How can this be fixed?

Thanks.

Comments

  • carlblanchetcarlblanchet Member Posts: 755
    That is because Overscan is meant to do exactly that, if you pick Letterbox instead it will reduce the size to fit the screen but will have a black bar at the top and bottom if not played on an iphone five and that wouldn't look good on iPhone 4 and less.

    Here's watch this:
    http://www.youtube.com/watch?feature=player_embedded&v=2pq7iy6QYXw#!
  • JaystaJaysta Member Posts: 18
    Thanks for the reply, do you know what the numbers would be going from i5 to i4? Cause the vid shows changing it to i4 to i5, tried a few ways and have got the width right but for some reason camera origin x wont go back to -29.
  • carlblanchetcarlblanchet Member Posts: 755
    I personally have not yet used or played with this trick, so I'm not too sure.
  • Ronaldinho10Ronaldinho10 Member Posts: 26
    edited December 2012
    Hi guys, i'having the same problem of Jaysta, the video shows how resize from iphone 4 4 to iphone 5,but i have the opposite problem ,i'm making a iphone 5 game and if i put legacy iphone (crop) on the preview it cuts the edges of the screen.
    I watched the video,i try many solutions, for example change the game.screen.size.width to 480 instead 568 and the scene camera size height to 320 but nothing :(
    How can i resolve this problem?
    Thanks guys
  • alarm656alarm656 Member Posts: 291
    That is because Overscan is meant to do exactly that, if you pick Letterbox instead it will reduce the size to fit the screen but will have a black bar at the top and bottom if not played on an iphone five and that wouldn't look good on iPhone 4 and less.

    Here's watch this:
    http://www.youtube.com/watch?feature=player_embedded&v=2pq7iy6QYXw#!
    quality of this video is very good))))
  • Ronaldinho10Ronaldinho10 Member Posts: 26
    edited December 2012
    Hi guys, i'having the same problem of Jaysta, the video shows how resize from iphone 4 4 to iphone 5,but i have the opposite problem ,i'm making a iphone 5 game and if i put legacy iphone (crop) on the preview it cuts the edges of the screen.
    I watched the video,i try many solutions, for example change the game.screen.size.width to 480 instead 568 and the scene camera size height to 320 but nothing :(
    How can i resolve this problem?
    Thanks guys
    if i change in project info tab from iphone landscape to legacy iphone landscape and after follow the video above,could be a solution ?

  • carlblanchetcarlblanchet Member Posts: 755
    The fact that the sides cut off is normal, since legacy is the iphone 4 and less screen size. You can indeed develop your game with iphone legacy but this feature won't be in gamesalad for ever.

    Simply have a rule in your actors that are on the side that cuts off:
    ~Rule~
    if device.screen.size.width/height = 568 -> Change attribute self.position.x/y to their normal location.

    and another rule:

    ~Rule~
    if device.screen.size.width/height = 480 -> Change attribute self.position.x/y and move them in a bit so that they don't get cut off.
  • Ronaldinho10Ronaldinho10 Member Posts: 26
    thank for the answer ,but my problem is the background image that is cut off :((
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    @Ronaldinho10 - You could change the image inside of the same rules that @carlblanchet already listed. That's what i'm doing in my newest app.
    - Thomas
  • alarm656alarm656 Member Posts: 291
    The fact that the sides cut off is normal, since legacy is the iphone 4 and less screen size. You can indeed develop your game with iphone legacy but this feature won't be in gamesalad for ever.

    Simply have a rule in your actors that are on the side that cuts off:
    ~Rule~
    if device.screen.size.width/height = 568 -> Change attribute self.position.x/y to their normal location.

    and another rule:

    ~Rule~
    if device.screen.size.width/height = 480 -> Change attribute self.position.x/y and move them in a bit so that they don't get cut off.
    You're quiet right!)))
  • alarm656alarm656 Member Posts: 291
    thank for the answer ,but my problem is the background image that is cut off :((
    Background image. Rule: if attribute device.screen.size.wight = 480. change attribue: self.image.size.wight to 480. When you choose crop you couldn't see the black side and not cut off)))
Sign In or Register to comment.