Rotate Device Changes Camera Control?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I'd like to rotate my device to profile mode and the device's camera moves to another actor (i.e. changes camera control to another actor, then goes back to the other actor when the device is back in landscape mode).

How can this be accomplished?

Comments

  • Rob2Rob2 Member Posts: 2,402
    game.Screen.Device.Orientation will return 0 to 5 for the six orientations possible so you could use that to trigger your camera control
  • DrGlickertDrGlickert Member Posts: 1,135
    Rob2-

    I tried that. I have two actors in the scene;

    Actor 1: Rule when game.screen.deviceorientation is landscape left or landscape right:

    Control Camera

    Actor 2: Rule when game.screen.deviceorientation is portrait or upside-down portrait:

    Control Camera

    Turning the device does not affect the camera.
  • DrGlickertDrGlickert Member Posts: 1,135
    Nope. Nevermind. I'm an idiot. I had Actor 2 on my HUD and not on the same layer as the other player...

    Oh well. A wasted few hours, but a good lesson learned.

    Thanks!
Sign In or Register to comment.