I am trying to move a ball around using the accelerometer, but I am having a hard time doing so, its either really jerky or the ball wont move up or down.
Would it be easier if it wasn’t dynamic?
Here is my code.
-- The hero variable is a newCircle() local function heroMovex(event) hero.x = (hero.x + event.xGravity)+20 hero.y = (hero.y + event.yGravity)+20 end Runtime:addEventListener("accelerometer", heroMovex)