So my collision event listener is working well but I need the function it refers to to differentiate between collisions between obj1 and obj2 and depending on that it will act accordingly. And this is pretty new to me so if you could please explain it to me as simply as possible. Thanks again for any help you give! [import]uid: 35535 topic_id: 9748 reply_id: 309748[/import]
Hey there!
Check out the collision detection info here;
http://developer.anscamobile.com/content/game-edition-collision-detection
You want to assign names to your objects, eg, obj1.name = “obj1”
Then only trigger the event;
[lua]if event.other.name == “obj1” then[/lua]
Peach
[import]uid: 52491 topic_id: 9748 reply_id: 35601[/import]