How do I make the player Blink?

Hi everyone, yet another indie survival horror game creator coming through. I’m making a game based on the “weeping Angels” from Doctor who, the whole thing about the character is they move when you look away, or blink. So far I have a weeping angel that follows you around and will stop moving when you look at it. What I am trying to do is make my character blink after a certain amount of time, maybe have a indication bar telling you how long you have before you blink. If I sprint I would like you blinking time to rapidly speed up so when you run away you start blinking more. If you play SCP Containment Breach you will know what I am looking for.

  • Nathan F.

Okay, I looked at that game you mention on YouTube

what I suggest you do, is place 2 black boxes/planes above and below the camera, and flip them into view like lift doors except sideways, fast when the guy blinks.

You can make them quite small and close to the camera, if your camera minimum renderer distances 0.1 m, do them at 0.12,

Every set amount of time plus a bit of random time set the mesh renderer on them to true so you the black becomes visible and move them briefly up and down.

When you want them to blink for longer and the guy to shake his head because he wants to try and open the eyes, close them for longer, put a fast Perlin noise function perlin(time10, 1) or a mathf.sin funtion to start with sin(time10) and add that to the eyelids movement, and also add a Perlin to the horizontal camera rotation and another Perlin the sideways camera rotation, and he will shake his head around and the eyelids will flip until you have the time that they open again.

set the black boxes to not receive light alsoif you want to