Problem with acceleration
expired_012
Member Posts: 1,802
Hola-
Im having a problem with the accelerometer right now. My game is in portrait mode btw. So i have an actor and I want him to move only left and right (no up and down) using the accelerometer. Here are my rules:
Move right:
When game.Accelerometer.X < 0.5
accelerate direction 0
Move left:
When game.accelerometer.x > -0.5
accelerate direction 180
It works in the GS preview but the acceleration wont work on my device. Anyone know what I did wrong?
Im having a problem with the accelerometer right now. My game is in portrait mode btw. So i have an actor and I want him to move only left and right (no up and down) using the accelerometer. Here are my rules:
Move right:
When game.Accelerometer.X < 0.5
accelerate direction 0
Move left:
When game.accelerometer.x > -0.5
accelerate direction 180
It works in the GS preview but the acceleration wont work on my device. Anyone know what I did wrong?
Comments
so to have a reasonable null spot left when x<-0.15 right when x>0.15
at .5 you are already leaning by about 20 degrees it all depends how sensitive you want it to be