I am testing my app on 240x320 samsung galaxy y and set the speed to 100.0f
and sensitivity to 15.0f and it works fine, but when I tried it to an Android
tablet or samsung s3 the sprite moves really slow when I tilt it in any direction.
I want to know if there is a formula or a way to compute
for the speed and sensitivity of the accelerometer depending on the screen resolution
of the device?
The sad truth is no… What I did is create a “Sensitivity” options in the option menu
so whenever the user feels that the movement is slow on his/her device he/she can set it in the options
menu.
I don’t think the problem is about the resolution. From my experience accelerometer sensitivity is different in every device. So in order to have the same experience in any device I have to use scheduleUpdate with interval. So I do the animation (like moving sprite, etc) inside the scheduleUpdate function. And also for me the sensitivity is actually too fast. So I have to limit it to 0.1 in order to not get crazy acceleration.