iPhone 4 to iPhone 5 Cropping Problems (Position, Size)
RenovateGames
Member Posts: 3
So I am building an app for the iPhone 4 and iPhone 5. I am creating it for the iPhone 4, then scaling it up to iPhone 5 (I know that many would suggest scaling down, instead of stretching, but I prefer scaling up) using Crop. I have some rules for 2 types of actors:
1) A background actor
2) A normal (located in a specific spot, does not take up the whole screen)
Now I was using these 2 rules for Type 1 and it works:
Rule 1 : If game.Screen.Size.Width = 568
Change self.Size.Width, Height by *.845
Change self.Position.X to (568*(self.Position.X)/480)-44
I got this rule from a post (made by VoidedSky, post is here: http://forums.gamesalad.com/discussion/53670/new-universal-build-method-iphone-4-iphone-5/p1) not 100% sure how it works.
Rule 2: If game.Screen.Size.Width = 568
Change self.Size.Width to 480
And these 2 rules work for background actors when I change the device to iPhone Landscape and use the Crop feature
However, for type 2 actors, when I use Rule 1 (Rule 2 is to stretch the BG to fit the screen, don't need that for type 2 actors) it doesn't stretch properly. I'm kind of confused, and I would appreciate help a lot!
Also, just in general, how would one scale up the camera and HUD to the 5?
Also #2, is this the right category?
1) A background actor
2) A normal (located in a specific spot, does not take up the whole screen)
Now I was using these 2 rules for Type 1 and it works:
Rule 1 : If game.Screen.Size.Width = 568
Change self.Size.Width, Height by *.845
Change self.Position.X to (568*(self.Position.X)/480)-44
I got this rule from a post (made by VoidedSky, post is here: http://forums.gamesalad.com/discussion/53670/new-universal-build-method-iphone-4-iphone-5/p1) not 100% sure how it works.
Rule 2: If game.Screen.Size.Width = 568
Change self.Size.Width to 480
And these 2 rules work for background actors when I change the device to iPhone Landscape and use the Crop feature
However, for type 2 actors, when I use Rule 1 (Rule 2 is to stretch the BG to fit the screen, don't need that for type 2 actors) it doesn't stretch properly. I'm kind of confused, and I would appreciate help a lot!
Also, just in general, how would one scale up the camera and HUD to the 5?
Also #2, is this the right category?