- Home /
How can I make my character blink after hitting a certain object?
I'm trying to make my character "Player" blink after hitting an obstacle called "movingWall" I don't know how to do this however I'm pretty new at programming, any and all help will be very much apreciated
Answer by PvTGreg · Dec 10, 2014 at 12:46 PM
ok im guessing by blink you mean actulay blinking so what i would do is when you collide with the wall it turns off your camera
void OnCollisonEnter(collison col)
{
if (col.tag = "wall")
{
camera.setactive(false);
}
}
this is just psuedo code so dont just copy paste
Answer by Ekta-Mehta-D · Dec 10, 2014 at 12:46 PM
Hey .
Check out this answer :
http://answers.unity3d.com/questions/569864/blink-objec-on-collision.html
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
How do I turn this into a Lerp function 1 Answer
counting in 3 different gui texts C# 0 Answers
Multiple Cars not working 1 Answer