Galaxy Shooter 2D — Game Over #11

A Retro Game Over Screen!

When the player has no lives left, I want my game to display a giant “Game Over” text. Like the good ol’ times…

Something really easy to do is just enable and disable the text in an interval with the use of Coroutines. But instead, I used the Animator to fade the text’s alpha value in and out. Why use an animation and not Coroutines to do the same thing? Because it’s simpler to do. ;)

Once the player dies, I activate the Game Over text GameObject and I let the Animator do its thing. Literally less than 1 minute to set up.

The animation automatically plays, and I have a simple Game Over screen!



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