OK, so what happens now is when I tilt my device up it goes left and when I tilt it down it goes right. Here is my code:
[lua]function onTilt(event)
mandown.x = mandown.x+30*-(event.xGravity)
print(event.xGravity)
end
Runtime:addEventListener (“accelerometer”, onTilt) [import]uid: 184688 topic_id: 32266 reply_id: 128962[/import]