x


Blood spurting?

Anybody got any ideas of how to make spurting blood. Abit like if you hit someone, blood comes out of there body. Preferably particles would be good.

Thanks in advance!

more ▼

asked Mar 07 '10 at 04:22 PM

Elicoor gravatar image

Elicoor
31 9 10 13

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Well, I'm not going to go into creating the art assets for "blood", nor will I go into details about the specific values you should use for the particle emitter (partially because there are just too many, and partially because it's more to your own personal tastes than anything), but I can outline one technique you can use.

Create a new Particle System game object. Set its effect to whatever you think looks best for "blood" (be sure to check the "One Shot" option, for instance). Then, when you want the blood to emit, move the Particle game object to the position where you want the blood to appear with some code (usually the hit location of a collision), and call Emit().

more ▼

answered Mar 22 '10 at 05:27 AM

qJake gravatar image

qJake
11.6k 43 78 161

(comments are locked)
10|3000 characters needed characters left

I would adapt the code from the FPS tutoiral that makes sparks come out of the wall. Then create the appropriate particle effect, then right an IF statement into whichever script that controls the creation of the particle effects that says if the object the ray cast just hit is the enemy create blood particles, else just create sparks.

more ▼

answered Mar 08 '10 at 03:51 AM

Cameron gravatar image

Cameron
43 6 6 9

Im not really familiar with what your on about, sorry im new. I'll tell you what im doing!.

What i want is when a object comes into contact with another object (e.g a sword with an arm, the arm being a trigger).As the sword comes into contact with the trigger i want it to spurt out blood. How do i get this to spawn at the exact point of the arm?. ( A code snippet would be helpful? :) ).

Cheers!

Mar 08 '10 at 06:00 PM Elicoor
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5077
x638

asked: Mar 07 '10 at 04:22 PM

Seen: 3636 times

Last Updated: Mar 07 '10 at 04:22 PM