Offset Accelerometer
RocketBrain
Member, PRO Posts: 269
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?
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
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).
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!