Search Unity

Blinking effect in a game object

Discussion in 'Scripting' started by jmaldonado93, Jul 28, 2014.

  1. jmaldonado93

    jmaldonado93

    Joined:
    Oct 19, 2013
    Posts:
    89
    I am developing a game in which the main character has to avoid some enemies. I have seen in other games that, when the main character and an enemy get in touch, the main character performs a special effect like "blinking". How can I achieve such an effect? I am open to listen for any other effect that can be applied.

    Regards.
     
  2. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    You mean his eyes?
     
  3. herman111

    herman111

    Joined:
    May 11, 2014
    Posts:
    119
    just turn the alpha to 0 in the animation window, or use a coroutine to turn on and off