Problem with accelerometer
Hi,
I'm creating a simple game with the accelerometer but i have a big problem. When the level begin, the main character go automatically to a direction. I tried to put it on a table and it was the same result. There is a way to calibrate the accelerometer as soon as the level begin?
here is short video to show you what I mean:
I'm creating a simple game with the accelerometer but i have a big problem. When the level begin, the main character go automatically to a direction. I tried to put it on a table and it was the same result. There is a way to calibrate the accelerometer as soon as the level begin?
here is short video to show you what I mean:
![](https://img.youtube.com/vi/dyQWVYSo7io/0.jpg)
Best Answer
-
jonmulcahy Posts: 10,408
check out this thread:
http://forums.gamesalad.com/discussion/1750/accelerometer-calibration
I posted instructions on how to do it awhile ago
Answers
-when "accelerometer.X" is > -0.1 --> accelerate ...
but now the rule should be
-when "accelerometer.X" is > -0.1+calibrate.X --> accelerate
Right???
You replace the .1 with the calibrate value
I don't have the template anymore, it was from 2009
Send and Receive Data using your own Server Tutorial! | Vote for A Long Way Home on Steam Greenlight! | Ten Years Left