I have this local collision code here
local function goalCollision(event) local phase = event.phase local target = event.target local other = event.other if phase == "began" then if other.collisionType == "platform" then timer.performWithDelay(500, onBack ) lm.unlockNextLevel() end end end goal:addEventListener("collision", goalCollision)
Right now the collision event only occurs when the platform collides with the goal, I would like the collision event to occur with the goal when a few other objects collide it as well. I don’t want a global collision because not all objects on screen are to collide with the goal.
Cheers