Accelerometer calibrate
stanimation
Member Posts: 406
Does anyone have an idea how to calibrate accelerometer settings. For example, if you are holding the device at an angle and would like to "calibrate" the settings to be the same as if the device were laying flat or 0,0,0. The issue is it would be nice to be able to play a game with the device in a position other than flat when using the accelerometer.
Comments
this is a tutorial from mulcahy's z is for zombie (great game bty). It works great.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left
The application Safari quit unexpectedly. The problem may have been caused by the GameSalad plug-in.
I then have to start Safari and quit it once before I can get connect to the internet.
I create two real game attributes (calibX and calibY)
In the start button actor I have two rules (in addition to the change scene rule of course) that says when touched change calibX to game.accelerometer.X and change calibY to game.accelerometer.Y
Then in my player that I am controling with the accelerometer I do just like the wiki says but instead of < or > 0 I use calibX and calibY
Make sense?
Also it bugs me when I get an error that I should not get. Thanks for the response. Also thanks for the accelerometer idea on my other issue.
Here's a direct link to the project file:
http://gamesalad.assets.s3.amazonaws.com/00000125-712c-987c-421d-723a3d737c10.game
right click on it and download and rename it as .zip, see if that opens for you.
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left