Landscape Left+Right and Accelerometer

sebmacflysebmacfly Member Posts: 1,018
edited November -1 in Working with GS (Mac)
Hi GSaladers!

I have a little problem with the accelerometer.
I use the accelerometer on an actor to control the camera.

It's working good in Landscape left, i can control the camera to the left or to the right.
But if i turn my device into landscape right, the accelerometer is inverted.

I'm doing something wrong?

Thanks

Comments

  • old_kipperold_kipper Member Posts: 1,420
    no. Not quite sure how you have things set up but basically just add/subtract 180 to the accelerometer rules when you are flipped.

    kipper
  • sebmacflysebmacfly Member Posts: 1,018
    The problem is that my game is in landscape mode (ipad) and i'm using the Y accelerometer, which is the same if you use it in landscape right or left.

    How can i change an attribute when i'm in landscape right or left?
    The device screen orientation doesn't work... the scene autorotate nether, always turn a "true" value
    (i have two actors diaplaying text, 1 displays scene.autorotate.landscapeleft and the other displays scene.autorotate.landscaperight. and text displayed when i test it on the device is true for both... strange)
  • old_kipperold_kipper Member Posts: 1,420
    is your device locked in one orientation? this fouls things up for some things. Can you tell me how you are exactly controlling the camera?

    kipper
  • sebmacflysebmacfly Member Posts: 1,018
    My device is not locked in one orientation.

    The accelerometer are controling an actor for the left and right moving. This actor have the "control camera" rule. The control camera is working good, but when i turn my device in the other side, the controls are inverted.

    thanks
    Sebby
  • sebmacflysebmacfly Member Posts: 1,018
    Any idea? :)
  • old_kipperold_kipper Member Posts: 1,420
    It could be one of a few things. If you want me to look at the file, I can. I will pm you my email.

    kipper
Sign In or Register to comment.