I have a knife falling to the bottom of the screen and then gone completely but how can I repeat this action after it leaves the screen endless times?
local knife = display.newImage( “knife.png” )
knife:translate (130,90)
knife:scale (0.5,0.5)
local physics = require( “physics” )
physics.addBody( knife, “dynamic”, {bounce = 0.95} )
knife.gravityScale = 0.25
knife.isSleepingAllowed = false
This is the code I have.