GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Accelerometer Motion Problem

studiocritystudiocrity Posts: 14Member
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.
This discussion has been closed.