Game Development Community

Spawning a fire

by Jesse P · in Torque Game Engine · 12/21/2007 (3:13 pm) · 4 replies

I've got an exploding barrel that emits an explosion from the FX Pack and I want it to spawn a small fire that stays on the ground for a few seconds after it explodes. How would I do that?

#1
12/22/2007 (2:38 pm)
You can contruct a fire using TGE's particle system. If you play the FPS starter kit you will see they have a few campfires in the mission, you can look up the script files and see how it's done using particles. This doc might help as well.

http://www.garagegames.com/docs/tge/general/apds18.php
#2
12/22/2007 (5:33 pm)
Thanks but how could I make it so it spawns after the barrel is destroyed and then lasts for a few seconds and then dissappears
#3
12/22/2007 (6:35 pm)
You could create a particle emitter in the barrels onDestroyed function
and do a schedule to delete the particle emitter.
#4
12/22/2007 (10:17 pm)
Will try, thanks