Accelerometer
Vmlweb
Member Posts: 427
Hey,
I'm making a sniper style game and I'm having some trouble with the accelerometer.
I need it to move in every direction according to which direction the accelerometer is in.
At the moment it only goes left right up down and cannot more in more than one direction at once. I have thought and thought about it but I don't know how to get it to fully work.
Here is the project could someone pls have a look at it.
http://download611.mediafire.com/omej2x927myg/ymmzz1ohzud/TargetTest.zip
Thanks a lot,
Vmlweb
I'm making a sniper style game and I'm having some trouble with the accelerometer.
I need it to move in every direction according to which direction the accelerometer is in.
At the moment it only goes left right up down and cannot more in more than one direction at once. I have thought and thought about it but I don't know how to get it to fully work.
Here is the project could someone pls have a look at it.
http://download611.mediafire.com/omej2x927myg/ymmzz1ohzud/TargetTest.zip
Thanks a lot,
Vmlweb
Comments
max(100,min(500,500*abs( game.Accelerometer.X )))
I can't believe I didn't think about it in the first place
THanks