I’ve got a project due tomorrow – a game that requires a game over screen.
The problem is, I don’t know how to properly get one working. Rather than the screen appearing as soon as you get hit by an enemy, it appears after 5 seconds have passed (this is how it’s supposed to work; I just can’t get the screen itself to show up, after the 5 seconds have passed).
For a more detailed explanation, it should work like this: get hit --> timer begins --> timer runs out
–> game over screen (this screen should be unaffected by anything else in the game; it disappears whenever you collect a power up, which is something I’m trying to fix, but don’t know how to)
Any help with this would be very much appreciated!
(I can’t upload the game itself, apparently, so I apologize if my explanation itself wasn’t thorough enough. If more detail is needed, I’d be happy to provide what I can!)