- Home /
Blood splatter when shot?
Hello people! Im using the robot, sentry gun from the FPSTuorial and the Orb from the 3rd person one. Im using the first person controller and I want blood to come on the screen and fade out after a while when the player looses health. Can anyone help me? Much appreciated!
Hi Epic ! I am trying the same thing now , using robot and sentry gun from FPS tutorial and Orb from 3rd person shooter in Bootcamp demo with soldier as a "player " , I am trying to reduce his health and get some blood splatters (just as we see in 3rd person tutorial ), but its not working with soldier , Can you please help me with this ?
Answer by spinaljack · May 30, 2010 at 05:37 PM
http://forum.unity3d.com/viewtopic.php?t=2668
Here is a pretty good blood splatter script. You can adapt it for screen splatter by making spatter decals instantiate on the near plane of the camera parented to the camera so that it moves with the view.
Hey. Thanks Jack. Can you give me a few hints on how to utilize this?
Like I said, instantiate the splatter decal on the near plane of the camera when you get hit. You make it fade by lowering the decal's colour alpha with a script. The decal is in the script package
Better to use a GUITexture that stretches across the screen, that way you won't ever have anything drawing in front of / through it.
Answer by Maltus · May 31, 2010 at 08:53 AM
Iwas thinking aparticle renderer I have been expeimenting with it for my gameObject [firehydrant.damaged] :) and it looks alright I believe it can look better and will be refining it. link to screen capture pic It kinda resembles liquid.
Answer by amita009 · May 27, 2011 at 04:05 PM
to create custom texture you can paint a texture directly on a model in the view port