Retro time isn’t over yet!

Flickery Game Over text behavior? Hell yeah!!

Game Over Retro Style

Nostalgic yet? Old remember the times when games had this kind of Game Over behavior? And you just thought how cool it looked?

Well, why not add it in our game too! :)
It’s really simple and quick to do.

Flickery Text

All you need for this is a
private Text _gameOverText;
private Text _restartText;

We have a method called GameOverSequence()
Which we call when our player dies

  • In our GameOverSequence, we tell our Game Manager script that our game is over by calling the method GameOver()

The GameOver() method has only one job in the Game Manager script, it changes the scripts boolean _gameOver to true

  • And we set active our _gameOverText and & _restartText
  • Then we start a coroutine GameOverFlickerRoutin()
GameOverFlickerRoutine Script

This is how the Coroutine works

  • While it’s true, our _gameOverText.text is “GAME OVER”
  • Then we wait 0.5 seconds
  • And change the text to “ ” empty
  • Then we again wait another 0.5 seconds
  • And change the text field back to “GAME OVER”

Congrats! Now you can do this flickery game over text or menu text or whatever you want! :)

Thank you for stopping by and reading my nonsense again and again :D
Hope to see you at the next one! Ready… Set… GO!

Photo by Silas Baisch on Unsplash

--

--

--

From the beautiful snowy country with a touch of "good" humor? Inspired Unity Developer to learn more.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Install Many Font Files by Command-Line on Ubuntu 18.04/20.04 ?

Simple I/O, The Stoplight

Learning to Love Heaps

Day 2 — Linux Tutorial | How to Create, Delete, Read, and listing out files?

Interactive Brokers in Python with backtrader

How to Let Your AI See

Gong’s Unique Culture? It Comes Down to 7 Things

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
Janika Suhonen

Janika Suhonen

From the beautiful snowy country with a touch of "good" humor? Inspired Unity Developer to learn more.

More from Medium

Daily Progression: Player Setup!

What is Filebase and How do you use it?

How can I move a Sprite? — Player Movement Scripting

Setting up GIT for Unity