Hi, would anyone know how to have a character move of screen to the left or right then re-appear on the other side.
I’ve done it with the mouse ok with:
if((ball.x - balloon.width * 0.5) < -ball.width+20) then
ball.x = display.contentWidth+ball.width/3
elseif((ball.x + ball.width * 0.5) > display.contentWidth+ball.width) then
ball.x = 0-ball.width/2+20
end
But with Accelerometer plugged in it just sits at the edge but doesn’t go through.
Thanks,
Mark