Accelerometer Question
JamesBoucher
Member Posts: 433
I'm creating a racing game and need some help on using the accelerometer. I know how to use the accelerometer if the object has no front (like a ball). I need to find out how to use accelerometer with a car.
Comments
This invisible actor would simply be a square, and this is what you actually control with the accelerometers. This square would not rotate. It would just slide around the screen.
The car sprite would have it's rotation constrained to the position of the invisible actor,
using vectorToAngle(invisibleX-carX,invisibleY-carY)
But i'm just thinkng off the top of my head
more info at http://vmlweb.co.uk/page.php?15
Any other suggestions?
My brain is not really working properly today and i sort of forgot about acceleration so i have a quick question
Say I have an actor in portrait mode, and I want it to move left and right using the accelerometer. How can that be done? The less then 0.1 and -0.1 and greater than things confuses me. if anyone knows please help
Use these values with the > or < to set up your rules. I started out by just copying other peoples rules from demos and forum suggestions, but I highly recommend using iDevices to figure it out for yourself as it will make you a better programer.