Autorotate Directly To Certain Origin?

SnapFireStudiosSnapFireStudios Member Posts: 1,603
edited March 2013 in Working with GS (Mac)
Heyo,

In my game, you can rotate the device portrait or landscape, and it works on iPhone 5 and 4.

To do this, I have a 568x568 scene, with the camera x origin originally being 44 while portrait.
Then the user rotate landscape, and it works fine. But then when they rotate back to portrait the camera is centered on the scene as opposed to having the x origin at 44.

Is there any way to make it so that GS autorotates back to the camera x orgin of 44?

If you don't understand what I mean, read it again ;)

Thanks in advance,
- Thomas

Edit: Sorry, I didn't mean for this to be in the Pro forum.

Comments

  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Bump ~:>
    - Thomas
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Anyone?
    - Thomas
  • ericzingelerericzingeler Member Posts: 334
    Can you just change it back to 44 with a rule?
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Yes, I can interpolate it to 44 after autorotation is done.. But it's rather ugly and not optimal in the slightest.
    - Thomas
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Anyone have an idea of how to do this? Thank you :)
    - Thomas
  • SingleSparqSingleSparq Member Posts: 1,339
    Why interpolate? Wouldn't just change changing the attribute make it instantly go there?
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    I wish @SingleSparq. UnfortUntely autorotate begins before there is time to change the attribute, and if you do it afterwards, it stutters.
    - Thomas
  • SingleSparqSingleSparq Member Posts: 1,339
    Hmmmmm... Only thing I can think of is to mask the stutter by including a fade out fade in black screen over top to make it look intentional but more graceful. Not ideal but I've done that to end a scene instead of a straight cut - not sure how well it would work in your situation though.
  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Yep, that's the last resort.
    Anyone actually know a way around this though?
    - Thomas
Sign In or Register to comment.