A wolf or other hunter leaping at a moving player: aim ahead, or not at all
A predator that jumps at where you are always misses, and one that always lands exactly on you feels like a cheat. Here is how to aim a committed leap ahead of a moving target, when to leap, when it is too far or too close, and how to keep it dodgeable.
Why this works
A leap cannot be steered once it starts, so the hunter must decide at the start where its prey will be when it comes down. That makes the attack fair: any change of pace or direction in the air is exactly what lets the player escape.
When not to use it
Do not use it for a hunter that should seem clever or relentless, such as a boss that tracks you. Then steer it during the move or chase on foot, and keep the committed leap for animals that should be beatable.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 4 common mistakes and the fix
- 23 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 "A wolf or other hunter leaping at a moving player: aim ahead, or not at all" (read_entry predator-pounce-aimed-at-a-moving-target) 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