Spielerando

Spread a recurring rival evenly through the levels before the finale

The enemy who keeps getting away should show up several times, but hand-placed he appears in three levels in a row and then vanishes for the rest of the game. Here is how your AI spreads the meetings so that the gaps are as equal as whole levels allow, with the last one right before the finale.

Why this works

Dread builds when a threat returns at steady intervals, not in a clump followed by silence. Spreading the meetings so the gaps are as equal as whole levels allow makes the rival feel planned, and the last one before the end makes the finale feel earned.

When not to use it

Skip it when levels differ a lot in length or the rival should appear because of what the player does, not on a schedule. Place meetings by playtime or by the player's own choices there, and treat an even spread only as a starting draft.

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
  • 20 lines of example code with 6 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "Spread a recurring rival evenly through the levels before the finale" (read_entry rival-appearances-spread-across-levels) 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