Hi, I did a collision between 2 couple of objects (lines-player & token-player) using the following code:
function onCollision( event )
if ( event.phase == "began" ) then
if event.object1.myName == "lines" and event.object2.myName == "player" then
my code here...
end
elseif ( event.phase == "ended" ) then
if event.object1.myName == "token" and event.object2.myName == "player" then
end
end
end
Runtime:addEventListener( "collision", onCollision )
Well, now I would like to add another collision with another couple of objects (boost-player), but I don’t know how to do that and I’m looking for a way to solve this little problem, any suggestion?
Thanks!
[import]uid: 122056 topic_id: 35311 reply_id: 335311[/import]