Collision detection doesn't work becouse offScreenCollider.

Hello! I am in a little bit of worry, why I can’t get this working(hide ice-cream and launch menu)? It looks like offScreenCollision has to do something with it(offScreenCollision is working), so I am showing both functions here. It doesn’t give me errors, so I don’t know where to look! Maybe you (Corona Gurus) know how to fix it! Please, can you help me?
Thanks!

[code]

–> COLLISION DETECTION!

piggy.myName = “piggy”
object_01_01.myName = “object_01_01”
–> Collision detection!
piggy:addEventListener(“collision”, piggy)

function piggy:collision (event)
if event.other.myName == “object_01_01” then
print “Piggy hit the ice-cream!”
object_01_01:addEventListener(“collision”, popMenu_completed)
object_01_01:addEventListener(“collision”, deleteMe)
end
end


–> CHECK IF PIGGY GOES PAST SCREEN
–> Adds “myPastScreen” to both piggy and offScreenCollider
piggy.myPastScreen = “piggy”
offScreenCollider.myPastScreen = “offScreenCollider”

–> Collision detection!
piggy:addEventListener(“collision”, piggy)

function piggy:collision (event)
if event.other.myPastScreen == “offScreenCollider” then
print “Piggy hit the offScreenCollider!”
offScreenCollider:addEventListener(“collision”, popMenu_reset)
end
end

[/code] [import]uid: 64009 topic_id: 13186 reply_id: 313186[/import]

Nevermind, fixed myself! [import]uid: 64009 topic_id: 13186 reply_id: 48436[/import]