Unversal build - Camera origin problems

WingmanappsWingmanapps Member Posts: 458
edited February 2013 in Working with GS (Mac)
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?


Comments

  • WingmanappsWingmanapps Member Posts: 458
    Any thoughs on this - havent been able to crack it myself yet
  • UtopianGamesUtopianGames Member Posts: 5,692
    So it only happens on iPhone 4 and 5 and the others are ok?

    Darren.
  • WingmanappsWingmanapps Member Posts: 458
    edited February 2013
    iPad is fine since there is no actual rule changing the camera origin.
    Its originally based on an ipad version - So yes only iphone4/5
  • UtopianGamesUtopianGames Member Posts: 5,692
    edited February 2013
    The flipping of the device seems to mess up the Y origin.

    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.
  • WingmanappsWingmanapps Member Posts: 458
    Cool beans :) ill try that
  • WingmanappsWingmanapps Member Posts: 458
    Constrain seems to have done the trick
  • UtopianGamesUtopianGames Member Posts: 5,692
    Nice one.

    Darren.
Sign In or Register to comment.