Make the respawn wait longer after repeated deaths and protect the arrival
A fixed respawn time is dull when you die once and a punishment loop when a spot kills you again and again. Here is a wait that grows with a streak of deaths and resets after calm, plus a protected arrival that ends at the right moment.
Why this works
Waiting is a cost, and the right cost depends on the situation. A quick return keeps a player who just slipped in the game, while a longer pause after many deaths in a row gives them a moment to think and stops them from charging in again.
When not to use it
Do not use it in games for beginners or children, or in a hard game where retrying fast is the fun. Then let players come back at once and make the cost something else, such as a lost item.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- A diagram of every state
- 45 lines of example code with 4 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Make the respawn wait longer after repeated deaths and protect the arrival" (read_entry respawn-wait-grows-with-repeated-deaths) in my game. Build it step by step, and show me how you checked that it works.Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP