local function collide(event)
display.remove (event.object2)
end
Runtime:addEventListener(“collision”, collide)
That’s my basic file. The display object include circles and rectangles falling in gravity, hitting a “static” ground. Upon hitting the ground, they disappear. All fine until I try to separate out the circles from the rectangles and only have circles disappear. The objects are created in a for loop. Is this why Corona is showing a “nil” value for their object1.myName? Why do they disappear upon hitting the ground if they have a “nil” value?
Any help would be greatly appreciated.