Game over and pause menu conflict
Ferrum Cerebrum » Devlog
Author: Aaronn Solomon
12/8/2023
The Problem
I had created a game over menu for when the player runs out of health. The issue that came was that the player could still pause the game after dying, which doesn't make sense. I tried using bools, instances of a new script, but nothing seemed to work.
The Solution
What I ended up doing is adding on to the check to see if the current scene is not the main menu. I added a check if the mech's health is greater than 0, and if it is, then you can pause. However, if the health is less than or equal to 0, then you can no longer pause. It was a much simpler solution than I thought, which was a nice surprise.
Ferrum Cerebrum
Two bodies. One mind.
Status | Prototype |
Author | GoldMoonStudio |
Genre | Shooter, Action |
Tags | Mechs, Virtual Reality (VR) |
More posts
- Pictures disappeared after building projectJan 29, 2024
- Frustration with images and spritesJan 24, 2024
- Volume value was uselessJan 19, 2024
- Recovering from being sickJan 17, 2024
- Respawning after changing loadout problemDec 13, 2023
- HUD window transparency issueDec 01, 2023
- Health component confusionNov 24, 2023
- Credits animation confusionNov 17, 2023
- Level select brokenNov 09, 2023