Spielerando

Ground Pound

A ground pound pauses the character in the air, then slams it straight down at a fixed speed. The landing reports how far the slam fell, so a shock wave can grow with it, and leaves the character stunned for a moment. Set the speed instead of adding to the fall.

Also called: Slam, Stomp, Dive bomb.

A chubby hippo-like toy wrestler in a violet cape smashes into a tile floor, shattered turquoise tiles bursting outward in a ring.
Thudmoth, an invented toy-world smash game. Invented game, image generated with AI.

Paste this to your AI

Copy it into Claude, Cursor or ChatGPT. It already has good values and the usual mistakes in it.

Add "Ground Pound" to my game.

What it should do: A slam gives the player a heavy, committed move: a short wait, a fast drop and a landing with weight. It trades a moment of safety for force and a way to hit what is below.

Build it exactly as this state machine. First check that it fits my game, then build it like this:

```mermaid
stateDiagram-v2
  [*] --> ground
  ground: On the ground
  air: In the air
  pause: Pausing
  slam: Slamming
  stunned: Stunned
  ground --> air: walks off an edge
  ground --> pause: steps off, presses down
  air --> ground: lands
  air --> pause: presses down up high
  pause --> slam: pause is over
  pause --> ground: ground comes up
  slam --> stunned: hits the ground
  stunned --> ground: stun is over
  stunned --> air: floor is gone
```

Use these starting values:
- pauseTime: 0.15 s
- slamSpeed: 28 units/s
- recoverTime: 0.3 s
- minHeight: 1 units
- gravity: 32 units/s²
- maxFallSpeed: 20 units/s

Watch out for these common mistakes:
- The slam adds to the fall speed: Tell your AI: stop the character in the air first and then set the speed to the slam speed.
- A long tick pushes the body below the ground: Tell your AI: check against the ground for the whole move of the tick and put the character on the ground when it is reached.
- A press held through the landing: Tell your AI: react to the moment the button goes down, not to it being held, and ignore presses during the slam and the stun.
- The ground moves: Tell your AI: look at the floor on every tick, stand on it when it has come up and fall when it is gone.
- A slam that starts almost on the ground: Tell your AI: start a slam only above a minimum height and ignore the press otherwise.

Do not change anything else in the game. Do not claim anything without proof: model what it takes, and show me what your solution rests on and how I can see that it works. If you cannot show something, say you do not know. When you are done, tell me in plain words how to try it.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP

What it does

A slam gives the player a heavy, committed move: a short wait, a fast drop and a landing with weight. It trades a moment of safety for force and a way to hit what is below.

How it runs, as a diagram

Everything it can be in, and what moves it on. Your AI builds from exactly this.

walks off an edgesteps off, presses downlandspresses down up highpause is overground comes uphits the groundstun is overfloor is goneOn the groundIn the airPausingSlammingStunned
How it runs, as a diagram
  • On the ground → In the air: walks off an edge
  • On the ground → Pausing: steps off, presses down
  • In the air → On the ground: lands
  • In the air → Pausing: presses down up high
  • Pausing → Slamming: pause is over
  • Pausing → On the ground: ground comes up
  • Slamming → Stunned: hits the ground
  • Stunned → On the ground: stun is over
  • Stunned → In the air: floor is gone

Good starting values

ValueStart withWhat it changes
pauseTime0.15 sHow long the character hangs in the air before the slam. Long enough to read as a wind-up, short enough not to feel like waiting. Zero slams on the next tick.
slamSpeed28 units/sHow fast the slam falls. Above the normal fastest fall, so it clearly feels like a different move.
recoverTime0.3 sHow long the character is stunned after landing. This is the price of the move: long enough to be a risk, short enough to try again.
minHeight1 unitsThe least height above the ground at which a slam may start. Below it, the slam would be a landing with extra steps and the pause would look like a glitch.
gravity32 units/s²How fast a normal fall speeds up.
maxFallSpeed20 units/sThe fastest a normal fall can be. The slam goes past it on purpose.

What usually goes wrong

The slam adds to the fall speed

If the slam adds speed to the current fall, the move is weak after a rise and absurdly fast after a long fall, and the sizes of the shock waves are all different.

Fix: Tell your AI: stop the character in the air first and then set the speed to the slam speed.

A long tick pushes the body below the ground

At slam speed, a slow frame moves the body several units in one tick. If it only checks for the ground afterwards, the character ends up inside the floor or falls through a thin one.

Fix: Tell your AI: check against the ground for the whole move of the tick and put the character on the ground when it is reached.

A press held through the landing

A player who keeps pressing down starts a new slam at the first chance, or the press on the tick of landing counts twice. The move turns into an endless bounce.

Fix: Tell your AI: react to the moment the button goes down, not to it being held, and ignore presses during the slam and the stun.

The ground moves

A floor that rises into a pausing character, or is smashed by the slam, leaves the character inside it or standing on nothing.

Fix: Tell your AI: look at the floor on every tick, stand on it when it has come up and fall when it is gone.

A slam that starts almost on the ground

A press a hand's width above the floor pauses the character for no reason and lands it with a huge-feeling stun for a tiny drop.

Fix: Tell your AI: start a slam only above a minimum height and ignore the press otherwise.

How to check it works

Works well with

Clashes with Glide: Down in the air can mean slam, and a held jump button in the air can mean glide. Let the slam end the glide at once. It is the more committed move.

Common questions

what do i tell my ai to add a ground pound

Paste this: Add a ground pound: a press of down in the air, high enough above the ground, stops the character for a short pause and then sets its fall speed to a fixed slam speed. On landing report how far it fell, stun the character for a short time and ignore presses during the slam and the stun.

why pause in the air before the slam

The pause tells the player the move has started and shows the enemy what is coming. Without it, the slam feels like an ordinary fall. A tenth of a second is enough.

how long should the character be stunned after a ground pound

A third of a second is a good start. Shorter lets the player chain slams for free, longer makes the move feel like a punishment. Raise it if the slam is very strong.

should the slam get stronger the higher it starts

Usually yes, but through the reported drop, not through a faster fall. The speed stays fixed so the move feels the same, and the game scales damage or the shock wave with the drop.

Where it comes from

We could not find a reliable origin for this one yet.

Where this mechanic comes from has not been researched yet.

Games are named only as references. Names and marks belong to their owners, and nothing here is endorsed by them.

What was checked

This is what separates the blueprint from a catalogue entry: the values on this page come from code that runs.

Your AI gets the code

Tested example code comes through the Spielerando connection, so your AI can use it right away. How to connect it