Game Development Community

ScrollDemo

by Harrison Brock · in Torque Game Builder · 01/02/2007 (8:44 pm) · 1 replies

I have add this to the playerShip::onLevelLoaded(%this, %scenegraph)
$HitCount = 3;

and this to the playerShip::onCollision(....)

$HitCount--;

if($hitCount<=0)
{
Canvas.pushDialog(EndScreenGui);
Canvas.showCursor();
}

I can get the screen to come up but it comes up the player fire is only missiles could someone help me with this so that it only come up when the enemy missile hit and the hitcount is 0?