You must be confused by the question, let me explain. In some games, when you die, it shows a death screen but the background is sometimes transparent and shows the game play. how to do that. here are a few pictures to help out: And sorry for advertising

Example 1 Example 2


Just keep the game playing behind UI overlay. If you have some AI, which is dependent on player's presence, then do something like this:

private void Update() {
  if (player.isAlive) {

If your enemies are based on FSM, make a new "Wonder" state, in which they act as if there was nobody to attack. Things not dependent on player, should work correctly after player's death.

  • \$\begingroup\$ My game has no AI, so what your trying to say is that, when my player dies, just put a UI overlay on the gamestate. correct me if im wrong. btw Im just 13 so please go easy on me. Thnx! \$\endgroup\$
    – Sree
    Dec 25 '16 at 12:48
  • \$\begingroup\$ Yes. I mentioned AI, because that's really the only thing that needs the player to exist. \$\endgroup\$ Dec 25 '16 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.