Offset Accelerometer

RocketBrainRocketBrain Member, PRO Posts: 269
edited November -1 in Working with GS (Mac)
Ok i figured out how to do the accel -0.05 and 0.05

is there a way to offset the game so you dont have to play it flat to stay in that "middle zone"? Say like a 45 degree angle?

Comments

  • RocketBrainRocketBrain Member, PRO Posts: 269
    i've played games that let me calibrate where i want "0" to be.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    http://gamesalad.com/game/play/69166

    This demo works well, but make sure you do not just copy and paste it into your project. It contains a custom made game attribute (real) that stores the accelerometer value when the calibrate button is pressed. You can copy and paste the code in, but you will need to create your own real game attribute and substitute it for mine (after copying and pasting it in it will say "game" instead of "game.calibrate" - get rid of the "game" and put your own in).
  • RocketBrainRocketBrain Member, PRO Posts: 269
    i cant seem to see the code.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    Go to the link
    Right click on the download button and save the file
    In finder change the extension to .zip
    Double click on the file
    It will unzip as a GS file.
    Double click it and away you go!
Sign In or Register to comment.