How can I make my FPS character lose health and when he loses health the screen will turn red on the sides to show he is hurt? Also how can he regenerate?
2 Answers
2You can do this by adding a script containing relevant syntax and properly declared variables. You can achieve this like, Jessy said, by learning about Unity first! Also READ THE FAQ before posting any more questions.
Lol, as Jessy said, you need to actually learn how to code before you actually take up upon yourself to do this...
However, in general, you give the player a health, have it decrease when shot, then if it's less than 10, you start the whole screen red thing which can be rendered or w/e, then you have the health auto increase by one every second, and then have it so that if it's above 100, make it 100 again... Easy. Just learn how to code.
We have not gotten to the level of technology yet where computers interact with us as if they were human beings. You need to think in more abstract logical and mathematical terms. A computer does not know "character", "lose", "health", "turn red", "the sides", or "regenerate". You are not ready to ask this question. Go work through some tutorials, on the Unity site and YouTube, and learn the basics of the language of Unity.
– JessyNot sure if it's what yur looking for but have a look at this link http://answers.unity3d.com/questions/18306/shoot-the-player-effect/18310#18310
– anon48034950