Unity: Creating a flicker effect

Objective: We need to create a flicker effect to our game over text.

To do this we need to go into our UI manager and create a coroutine so we can use a while loop. So while the loop is true we can assign the text to say game over, then wait 5 seconds, then assign the text to say nothing and then wait 5 seconds again.

Once you’ve done that, you’ll want to call the coroutine you just made after the game over text is set to active in the update lives function so that it only displays after the player has died.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jake Boere

Jake Boere

7 Followers

I am hard working Game development student learning as much about game development and unity as possible.