If I am making a game where there is health and when health reaches 0, the game ends, how do I make that system go on the entire time?
For example, whenever the player’s health reaches 0, a game over screen is printed, how do you do that?
Whenever I try to do it, the code just stops because it waits for the health to reach 0 and doesn’t let the code go on.
New contributor
Kenneth Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.