#6 | 22-07-24 | Time Limit


Hello!

Today's task is creating a time limit. When the time counter reaches zero, the high score and a game over screen is displayed.

To achieve this, I created another Game Manager script to handle counting and displaying the time limit.

The two Canvas variables represent the "Game UI" and "Game Over UI" canvas. When the game is in play, "Game UI" is enabled. When the time counter reaches zero "Game UI" is disabled and "Game Over UI" is enabled. When "Time.timeScale" is set to zero, it effectively pauses the game but still allows some input (clicking buttons).

The next tasks will be creating a main menu, making UI buttons function and making the game look a bit better.

Thanks for reading!

Get Hit That Target!

Leave a comment

Log in with itch.io to leave a comment.