boolean

I’m not sure if i would use true or false but I want to know how I would make a function to determine that if a collision is deemed true then something would happen.

[import]uid: 54001 topic_id: 9723 reply_id: 309723[/import]

A collision event listener is only called if it is “true” (a collision happens).

This might be what you’re asking though… (just an example)

function collisionListener(self, event)  
 if event.other.name == "player" then   
 --the object that the collision listener belongs to will remove the player's life only if it collides with the player  
 event.other.lives = event.other.lives - 1  
 end  
end  

[import]uid: 49205 topic_id: 9723 reply_id: 35454[/import]