Universal Binaries Question
LSGamer
Member Posts: 13
Hey all, I was hoping to get some help on my latest project.
I have created a game in Legacy iPhone Landscape, and am trying to convert it for use with an iPad. What I currently have reads as follows:
I have Resolution Independence checked.
A "dummy scene" called Universal_Binary_Check. In this scene tehre is an actor that has the following rules:
If game.Screen Width = 480, then:
Change Attribute - game.iPhone (Boolean) to True
And Change Scene to iPhone_Main Menu
If game.Screen Width = 1024, then:
Change Attribute - game.iPad (Boolean) to True
And Change Scene to iPad_Main Menu
Each actor in each scene has rules that tell it which image file to use based on which Boolean is true (iPhone/iPad). As far as this goes the only difference with the image file is original resolution sizes (bigger for iPad, smaller for iPhone).
The iPhone_Main Menu is setup at the default (Size: 480 x 320, Camera Origin: 0 x 0, Camera Size: 480 x 320, Camera Tracking Are: 400 x 240).
The background image is 480 x 320, and all of the buttons are various sizes.
The iPad_Main Menu is setup at Size: 1024 x 768, Camera Origin: 0 x 0, Camera Size: 1024 x 768, Camera Tracking Are: 400 x 240.
The background image is 1024 x 768, with the various buttons being doubled in size from the iPhone versions, and moved into the correct locations.
The iPhone version works fine on iPhones 4S and below (it gets black bars on the left/right for iPhone 5; I'm ok with this at this point).
The iPad version is cutting off the left and right of the screen. I have no idea why. I have searched the forums and read all of the pertinent posts I could find, and watched numerous videos. Nothing seems to be helping.
Can anyone think of what I am doing wrong here? Any help would be greatly appreciated!
I have created a game in Legacy iPhone Landscape, and am trying to convert it for use with an iPad. What I currently have reads as follows:
I have Resolution Independence checked.
A "dummy scene" called Universal_Binary_Check. In this scene tehre is an actor that has the following rules:
If game.Screen Width = 480, then:
Change Attribute - game.iPhone (Boolean) to True
And Change Scene to iPhone_Main Menu
If game.Screen Width = 1024, then:
Change Attribute - game.iPad (Boolean) to True
And Change Scene to iPad_Main Menu
Each actor in each scene has rules that tell it which image file to use based on which Boolean is true (iPhone/iPad). As far as this goes the only difference with the image file is original resolution sizes (bigger for iPad, smaller for iPhone).
The iPhone_Main Menu is setup at the default (Size: 480 x 320, Camera Origin: 0 x 0, Camera Size: 480 x 320, Camera Tracking Are: 400 x 240).
The background image is 480 x 320, and all of the buttons are various sizes.
The iPad_Main Menu is setup at Size: 1024 x 768, Camera Origin: 0 x 0, Camera Size: 1024 x 768, Camera Tracking Are: 400 x 240.
The background image is 1024 x 768, with the various buttons being doubled in size from the iPhone versions, and moved into the correct locations.
The iPhone version works fine on iPhones 4S and below (it gets black bars on the left/right for iPhone 5; I'm ok with this at this point).
The iPad version is cutting off the left and right of the screen. I have no idea why. I have searched the forums and read all of the pertinent posts I could find, and watched numerous videos. Nothing seems to be helping.
Can anyone think of what I am doing wrong here? Any help would be greatly appreciated!
Comments
So, this is working as intended? This can't be right.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
@Braydon - Your template's did the trick! Awesome! Thanks a ton!
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx