hello everybody, i got some problem when i set a collision.
my idea is that:
i want that an object, on collision with another, is removed and then another different object is displayed.
the problem start when i want remove also the second object!
how can i write that right?
i’m new in corona and lua so i’m sure there is something that i miss 
that’s my code :
local physics = require("physics")physics.start()physics.setGravity(0,3)local background = display.newImage("sky.png")local grass = display.newImage( "grass.png", true )grass.x = 160grass.y = 440physics.addBody( grass, "static", { friction=0.5, bounce=0.3 } )grass.myName = "grass" local egg1 = display.newImage("egg.png")egg1.x = 150egg1.y = 100egg1.myName = "egg"physics.addBody(egg1, "dinamic",{ density=1.0, friction=0.1, bounce=0.5, radius=25 })local function eggcrack()eggcrack1 = display.newImage("egg_cracked.png")eggcrack1.x = 100eggcrack1.y = 100return trueendlocal function eggckremove(e)if eggcrack1 ~= nil then eggcrack1:removeSelf()endendlocal function collision(event)if event.other.myName == "grass" then timer.performWithDelay(500, eggckremove, 0) timer.performWithDelay(50, eggcrack, 0) egg1:removeSelf() endendegg1:addEventListener("collision", collision)[/code] [import]uid: 99803 topic_id: 18134 reply_id: 318134[/import]