accelerometer help.

tollhousestudiotollhousestudio Member Posts: 166
edited November -1 in Working with GS (Mac)
I have my game set up landscape.

I followed 'tshirtbooth's' you tube tutorial and it does work, but not at this orientation.

It works if the phone is portrait (upside down) this is strange, does anyone know what is wrong?

Comments

  • Fafnir312Fafnir312 Member Posts: 161
    It sounds like you have something flipped the wrong way in your code - like you're missing a negative sign or something.
  • tollhousestudiotollhousestudio Member Posts: 166
    where in my code? its a simple accelerate up and down, NO left to right or forwards etc...

    is there more code to put in somewhere else to use accelerometer function?
  • Fafnir312Fafnir312 Member Posts: 161
    I don't have an iPhone so I just thought I'd mention a possibility.

    I'm watching tshirtbooth's video tutorial now and I don't think it should matter which way your game is set up (landscape vs portrait). It's set up so that whichever way you tilt the iPhone is the direction the little ball rolls.

    If the "up and down" in your game is "left and right" in the tutorial then use the tutorial "left and right" for your "up and down" :P
Sign In or Register to comment.