Unversal build - Camera origin problems
Wingmanapps
Member Posts: 458
Hi GS'ers
Ive implemented Darrens UB template accordingly.
Everything works perfectly on every device - ipad/iphone4/iphone5 in adhoc build
until i do a horizontal to horizontal rotate of my device (180)
It seems like the camera origin moves up a bit since some of the lowerscreen is now cropped off
This problem consists on both iphone4 and iphone5
I dont have any NON-Scrollable layers.
When i enter a new scene, its all good again until i do a full rotate.
Should i do a contrain of the camera origin instead of change attribute?
any advice?
Ive implemented Darrens UB template accordingly.
Everything works perfectly on every device - ipad/iphone4/iphone5 in adhoc build
until i do a horizontal to horizontal rotate of my device (180)
It seems like the camera origin moves up a bit since some of the lowerscreen is now cropped off
This problem consists on both iphone4 and iphone5
I dont have any NON-Scrollable layers.
When i enter a new scene, its all good again until i do a full rotate.
Should i do a contrain of the camera origin instead of change attribute?
any advice?
Comments
Darren.
Its originally based on an ipad version - So yes only iphone4/5
Instead of doing a change attribute do a constrain for the Y origin.
If you don't want a constant constrain you can do a game attribute integer call it deviceOrientation and change this integer in each scene to devices/screen/orientation and do a rule to see if its different then constrain but you will need a timer to set the integer deviceOrientation attribute to the current devices/screen/orientation so it can check again to see if its not matching if the user flips again.
Darren.
Darren.