So, what I'm trying to do is create a "healthbar" that goes across the top of the screen when the player holds the esc button, and when the bar goes all the way across, the game closes.
However, when I test it, there is no healthbar until the game actually closes, when it's full.
Here's my...