Re: Ending levels when enemies die


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]

Posted by CogKing on January 07, 1998 at 12:20:21:

In Reply to: Re: Ending levels when enemies die posted by Stealth on January 07, 1998 at 09:28:10:

> It`s almost the same thing. take your cog and replace the "surface" symbol with "thing" and change in placed cogs the surface number with the thing number of the thing . You`ll have to check to see when it is dead ,but you can look at how that was done in the Yun level cogs. In fact you can probably just use that cog and pass it a different thing number in placed cogs

Just use a cog along the lines of (this is not a complete cog, just fragments !!!) :

thing boba mask=0xfff
message killed
...

killed:
// wait a while, see the death animation, etc.
Sleep(3);

// Don't end the level if player is dead.
if (GetThingHealth(GetLocalPlayerThing()) <= 0) return;

// finish the level
jkEndLevel(1);

Return;

Hope this helps.
-CogKing


Follow Ups:



Post a Followup

Name:
E-Mail:
Subject:
Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Jed Messages ]