Game Development Community

Particle effect when taking damage

by Justin Woods · in Torque Game Engine · 03/10/2006 (9:15 am) · 2 replies

Hello everyone. I have, what seems like, a simple question. I have a large NPC in my game. I want it so that when you hit him a particle effect (similar to blood) occurs for a moment. Is that easy enough to do? Any tips?

#1
03/10/2006 (10:23 am)
Justin: In general, my thinking goes like this - find the place where it was hit(raycasting).
create a particle emitter and a particle datablock that defines the effect you want.
position the emitter on the place of the collision
delete the emitter.
#2
03/10/2006 (10:31 am)
Atach it to a trigger on your "hurt" animation.