Accelerometer

I am trying to make a game that turns a object based on how you rotate it.
my rule is:
game.accelerometerY > 2
then rotate rotate counter-clockwise
other wise - rotate clockwise
game.accelerometerY < -2
then rotate - clockwise
other wise - rotate counter clockwise
(this is supposed to be when the device is facing me)
Whenever I test this it rotates clockwise and won't do anything else no matter what way I tilt my device. And keeps turning when laid flat. Anyone know what the problem is?
my rule is:
game.accelerometerY > 2
then rotate rotate counter-clockwise
other wise - rotate clockwise
game.accelerometerY < -2
then rotate - clockwise
other wise - rotate counter clockwise
(this is supposed to be when the device is facing me)
Whenever I test this it rotates clockwise and won't do anything else no matter what way I tilt my device. And keeps turning when laid flat. Anyone know what the problem is?
Comments
Your second rule is setup to rotate everything greater than -2 counter clockwise but then you first rule makes everything less the 2 go clockwise. So you have to rules telling it to do 2 different things when the value is -1.9 thru 1.9