Portrait Game-Can use Y Accelerometer??

iTouchGameriTouchGamer Member Posts: 681
edited November -1 in Working with GS (Mac)
Hi all, my next game is in the portrait orientation and I have tried and tried, but the Y accelerometer doesn't work when I test it. Any ideas??

Comments

  • sebmacflysebmacfly Member Posts: 1,018
    What do you need to do with the accelerometer?
    Please explain a little more...
    If you want me to take a lokk on your project, you can zip it and send it to sebby_zzzz@hotmail.fr
    I'll tell you what's wrong.

    Cheers!

    -------------------------------------
    HEADS-UP POKER TEMPLATE : http://gamesalad.com/forums/topic.php?id=20728

    PICTURE SUDOKU TEMPLATE : http://gamesalad.com/forums/topic.php?id=20331&replies=3#post-157452
  • iTouchGameriTouchGamer Member Posts: 681
    Lol, I did change it to Y......when I go to test it on the viewer, and I tilt it forward/backwards nothing happens...
  • sebmacflysebmacfly Member Posts: 1,018
    iTouchGamer said:
    Lol, I did change it to Y......when I go to test it on the viewer, and I tilt it forward/backwards nothing happens...

    Send me the project i'll see for you

    -------------------------------------
    HEADS-UP POKER TEMPLATE : http://gamesalad.com/forums/topic.php?id=20728

    PICTURE SUDOKU TEMPLATE : http://gamesalad.com/forums/topic.php?id=20331&replies=3#post-157452
  • veibhavveibhav Member Posts: 15
    Hello everyone I am using accelerometer in portrait mode for iPhone but left and right working but top and bottom not working .
  • MotherHooseMotherHoose Member Posts: 2,456
    the device is in 3 dimensions … the screen is a flat plane with X and Y and Z coordinates … all = O the un-tilted state
    Accelerometer references the orientation/rotation of the device
    when tilting of the device registers as a user input

    Devices > Accelerometer > X and Y … monitor the left and right tilt
    Z monitors the device tilt top/bottom … perpendicular to the non-tilted orientation

    @gyroscope should be explaining this one!

    @};- MH
  • veibhavveibhav Member Posts: 15
    edited February 2012
    Thanks, Z monitors the device tilt top/bottom.do you know any tutorial or code for the same.
  • Rob2Rob2 Member Posts: 2,402
    edited February 2012
    I recommend you make a very simple project that you can run in the viewer with 3 display text attributes to show you what is going on with the accelerometer. ( you could do it with one display text if you wish )
  • veibhavveibhav Member Posts: 15
    Thanks ok.
This discussion has been closed.