accelerometer need help please
777ideas.com
Member, PRO Posts: 895
Started my first game and using the accelerometer in iphone landscape mode my using X for up and down and im using Y for left and right it works on my iphone but it doesn't seem good. Is there a way to make to better it seems like it takes to long to go left ,right, up ,or, down. And when my game starts the actor goes straight up and I didn't tilt my iphone. My up is greater than -0.1 and my down is less than -0.1. My left is greater than 0.1 and my right is less than -0.1.
Im using Accelerate
Plaese Help
Thank-you
Im using Accelerate
Plaese Help
Thank-you
Comments
The issue of it taking too long to go any direction is that once something starts moving in a direction and you start to accelerate in the opposite direction the accelerate works against the initial motion slowing you down, then slowly builds up speed the other direction. Just like a real ball. It is rolling down a hill and starts up another hill. It couldn't just roll up the hill by itself, it is the momentum from going down the first hill that allows it to start up the next hill.
Best of luck with this and hopefully this makes sense. Not positive what you are trying to accomplish, but atleast I hope I helped you understand what is going on with your movements.
http://gamesalad.com/wiki/how_tos:gsc_iphone_controls#how_do_i_make_use_of_the_iphone_ipod_touch_accelerometer
or this
shakirovruslan2008@gmail.com