Spielerando

My hero sometimes shoots backwards right after turning around

A shot that goes the wrong way for a single picture is hard to see, but it costs players kills, and it has a different cause from a shot that always goes the wrong way. This helper sorts the shots from a recording into those two cases and the rest.

Why this works

If the shot uses the direction from before the turn, only the turn frame is wrong: the order of updates is the cause. If it is wrong in other frames too, the direction is stored or signed wrongly. The fix differs, so the audit separates them.

When not to use it

A game where you aim with the mouse or a stick does not tie the shot to facing. Compare with the aim direction instead of the facing there.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 3 common mistakes and the fix
  • 33 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 "My hero sometimes shoots backwards right after turning around" (read_entry work-act-hero-shoots-the-wrong-way) 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