Shaking screen in a landscape game shifts screen by 240px [2.0]

big12isu

  • Posts: 19
I am trying to implement the shake screen feature into my ios app and every time I try to shake the screen the camera jumps to the left so it changes everything that I am looking at. Please help. I have attached an image of my scene code. I am just testing it on the when created code just to make it work. Then I will add it to where it needs to go.

« Last Edit: February 23, 2012, 10:47:51 pm by Jon »

Jon

  • *
  • Posts: 17524
Do you mean it permanently ends up on the left even after the shaking ends, or that it's temporary but always tends to shake leftward?

big12isu

  • Posts: 19
It is permanent, the camera shifts over to the left and stays there even after the shake

Jon

  • *
  • Posts: 17524
In pixels, roughly how much to the left would you estimate it to be?

big12isu

  • Posts: 19
About 240 pixels, (half the screen).

Jon

  • *
  • Posts: 17524
Got it - it sounds like it's thinking it's the other orientation.

Jon

  • *
  • Posts: 17524
Thanks again, fixed for 2.0. Affected landscape games.