ok another question from me, i’m still working on my weeping angels moving when blink animation occurs, but here is another question. I was able to make the character blink by using the right click. What I want to do now is have my character take damage overtime.
The point of my game is like slender, but this time with weeping angels. If the angels touch you you die. Now what I want is to have a timer that has for example 60 seconds, and when that timer ends my character starts taking damage.
The only way to restart the timer is to blink by right clicking. Basically, if you dont activate the blink animation you die.
here is my new blink animation
#pragma strict
var appear : GameObject;
function Start()
{
appear = GameObject.Find(“eye”);
}
function Update()
{
if(Input.GetMouseButtonDown(0))
{
renderer.enabled = true;
}
else
{
renderer.enabled = false;
}
}