Accelerometer Motion Problem

studiocritystudiocrity Member Posts: 14
edited November -1 in Working with GS (Mac)
Having slight problem with accelerating my character on the x-axis relative to the devices tilt, I have the rule:

if game.acceleromete.x<-0.1
accelerate
direction 180
speed (game.accelerometer.x)*(-500)

if game.acceleromete.x>0.1
accelerate
direction 0
speed (game.accelerometer.x)*(500)

however when i test, my character only moves very slowly, even if i change 500 to 50000 it still moves at the same rate, i have tried changing the max speed and that has no effect, can't see why it isn't working.
Thanks for the help.
Sign In or Register to comment.