Game Development Community

Destruction of enemies by jumping on them

by Wolf Okami · in Torque Game Engine · 05/21/2009 (1:25 pm) · 2 replies

How would i have the enemy perform the death animation and then dissapear after i jumped on them?

And How would i add a GUI that allows me to pickup items and add them to the numerical value?
--(ex. 1=1 point)

Also how would I make the enemies randomly roam around a ranged area instead of following a path marker, and make them attack me when i am in rang of them?

The third and final Question is How do i re spawn my character after he dies in lava or gets hit by an enemy?
--(I made a new level off the FPS starter kit)

#1
05/21/2009 (1:45 pm)
1: Determine from which direction the "enemy" was collided with. If from above then play the death animation and startFade(). Examples for these are in the scripts already...

2: TGE Documentation. Check out the GUI-related topics. You can also find this, similar and more, information in the GUI/Getting Started pages on TDN.

3: Do a search for "Killer Kork", "AIPatrol", "AIGuard", and the "Improved AI Guard" resources.

4: If the game doesn't automatically respawn you after getting killed, then you messed something up.
#2
05/21/2009 (1:49 pm)
When i say enemy i mean "bot.cs" is that in there?