Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Flashing light on collide

Discussion in 'Image Effects' started by BloodmoonCreations, May 20, 2017.

  1. BloodmoonCreations

    BloodmoonCreations

    Joined:
    May 1, 2017
    Posts:
    7
    Simple enough?
    I want that when FPS collides with a particular object the screen flashes red as my sound plays and then they are sent back to start scene (death scene) got it all but cant flash the red color.. Newbie that is catching on fast :)
    Ideas?
     
  2. Gord10

    Gord10

    Joined:
    Mar 27, 2013
    Posts:
    142
    I think you can simply put a red UI panel on the Canvas, which will get activated when he dies.

    For a fading effect, you need to create a counter, increase it Time.deltaTime in Update, then set the panel's color's alpha as the counter value.
     
  3. BloodmoonCreations

    BloodmoonCreations

    Joined:
    May 1, 2017
    Posts:
    7
    Got it.. thanks for your answer...