Spielerando

In a chase the camera should show what is coming, but never lose the player

Seeing the pursuer creep into the edge of the picture is what makes a chase frightening. Pulling the view towards it too hard pushes the player off the screen. Here is a way to weight the view towards the threat that fades smoothly and keeps the player safe in the frame.

Why this works

Fear comes from seeing the danger approach, but the player still has to see where they are going. So the view leans toward the threat more strongly the closer it gets, and a hard limit keeps the player well inside the picture.

When not to use it

Do not use it when the threat comes from several sides, or when the player must watch the way ahead for traps or jumps. Leaning toward the danger then hides the path. Keep the view on the player and show danger with sound or a shadow at the edge.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 25 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 "In a chase the camera should show what is coming, but never lose the player" (read_entry camera-frame-the-player-and-the-chaser-together) 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