Accelerometer

I’m building a game in which I’m using the accelerometer and applying a linear impulse to have the main character go side to side across the screen. I have the accelerometer working but it is very choppy. I need the character to be able to go the other direction on a dime. I want to program the accelerometer similar to the way it is in doodle jump, but I’m not seeing the same smooth results. Any suggestions?

See:  http://docs.coronalabs.com/api/library/system/setAccelerometerInterval.html

The value should probably match the FPS of your app.  So if you have a 30 frame per second app, set it to 30.

Rob

See:  http://docs.coronalabs.com/api/library/system/setAccelerometerInterval.html

The value should probably match the FPS of your app.  So if you have a 30 frame per second app, set it to 30.

Rob