Hello all unity3D coders i need some help displaying a blood image when the player is hit by a zombie i have a image for it i just dont know how to make it show on the camera view for 4 secs here is my code:
void OnTriggerEnter(Collider col){
if (col.tag == "zombie")
{
Health -= 4;
}
}
I beleave you have two ways of doing it.
One you can have a plane textured in front of the camera and you change the alpha value of it to make it apear, disapear or even fade between.
Or you could use a Gui texture to show in the camera. But i think the first choise is easier and you have more control over it.
hope it helps
By the way. you need to set the material of the plane to diffuse transparent or some shader that has transparency value . and set it to full transparent on start.