iPhone Portrait Cropping, camera origin issues
LiosStudios
Member Posts: 53
I have been trying to adjust my game so that it works on the iPhone 5 screen size. I use:
when all conditions are valid
game.screen.size.height t= 568
change attribute
scene.camera.size.height to 568
change attribute
scene.camera.size.width to 378
change attribute
scene.camera.origin.x to -29
This has worked in all of my scenes, except for actual gameplay scenes, after a level, menu, settings, etc..
The issue seems to be with the camera origin, because it is not changing. Here are some pictures, that better display the scenario.
The actor that holds all of the rules:
Before Cropping in iPhone portrait:
After cropping in iPhone Portrait:
iPhone Legacy Portrait:
when all conditions are valid
game.screen.size.height t= 568
change attribute
scene.camera.size.height to 568
change attribute
scene.camera.size.width to 378
change attribute
scene.camera.origin.x to -29
This has worked in all of my scenes, except for actual gameplay scenes, after a level, menu, settings, etc..
The issue seems to be with the camera origin, because it is not changing. Here are some pictures, that better display the scenario.
The actor that holds all of the rules:
Before Cropping in iPhone portrait:
After cropping in iPhone Portrait:
iPhone Legacy Portrait:
This discussion has been closed.
Answers