function drop()
drpimg = display.newImage (“drop.png”)
drpimg.x= math.random(10,1000)
drpimg.y=-10
drpimg.myName = “Drop”
physics.addBody( drpimg, { density=0.9, friction=0.3} )
function drpimg:collision (event)
if event.other.myName == “Ground” then
print “Drop hit the Ground!”
if drpimg.remove then
drpimg:removeSelf()
end
end
end
drpimg:addEventListener(“collision”, drpimg)
end
local drop1= timer.performWithDelay( 1500, drop, -1 )
—>> this is not being executed.can anybody help me? [import]uid: 82446 topic_id: 15496 reply_id: 315496[/import]
[import]uid: 3826 topic_id: 15496 reply_id: 57254[/import]