I have tried to make a loop of an falling object but I didn’t succed. I tried many wait but I couldn’t find the right way to do it.
What I want is when the object gets under the screen, to go back on top and fall again, creating a loop.
This is how my object looks like :
local bara = display.newImage(“bara.png”)
bara.x = 175
bara.y = -math.random(500,1000)
physics.addBody( bara, “dynamic”, {bounce=0, density=5, friction=0})
bara.isFixedRotation = true
bara.gravityScale = 1