Game Development Community

Fishgame tut collision problem

by Tomas · in Torque Game Builder · 10/05/2009 (7:59 pm) · 1 replies

Hi Im on step 5 of the Fishgame tutorial and Im stuck on the part were the fish is suposed to eat the buble and then the bubble respawns at the top. I have everything checked that the tutorial says. and heres my code.

function FishFood::onCollision(%srcObj, %dstObj, %srcRef, %dstRef, %time, %normal, %contactCount, %contacts)
{
if(%dstObj.class $= "PlayerFish")
{
%srcObj.spawn();
}
}

Need some help plz.

#1
10/06/2009 (10:39 am)
Ended up figuring it out last night. Had and extra box checked off in the collision tab that was screwing it up.