Proving Grounds: 3D Platformer Mechanics Support: GitHub issues

Slam

1. What it does

The slide button in the air: the hero hangs for a moment (0.4 s), drops fast and flattens the top crate of a stack and the enemies around the landing, then rebounds.

2. Turn on / off

3. Level actor to place

None. Stack crates (Corridor Crate) to give it something to flatten.

4. Details fields

Field Default What it does
Belly Flop Velocity (BellyFlopVelocity) 1286 Constant drop speed of the belly flop (cm/s). (Details: Corridor | Slide)
Belly Flop Hang (BellyFlopHang) 0.4 Mid-air pause before the belly flop drops, matching the anticipation clip. (Details: Corridor | Slide)
Belly Flop Bounce (BellyFlopBounce) 771 Upward bounce after the belly flop lands (cm/s). (Details: Corridor | Slide)
Belly Flop Flatten Extent (BellyFlopFlattenExtent) 141 Half size of the cube around the feet whose enemies a belly flop landing flattens (cm). (Details: Corridor | Slide)

Option A (Corridor Hero component, 4. Moves): Slam Hang, Slam Velocity, Slam Bounce Height, Slam Flatten Extent.

Field Default What it does
Slam Hang (SlamHang) 0.4 The slam (slide pressed in the air): a hang, then a straight drop that flattens the crate and the enemies landed on. (Details: 4. Moves)
Slam Velocity (SlamVelocity) 1286 - (Details: 4. Moves)
Slam Bounce Height (SlamBounceHeight) 36 Height of the hop after a slam lands (the kit hero's: 36 cm). (Details: 4. Moves)
Slam Flatten Extent (SlamFlattenExtent) 141 - (Details: 4. Moves)

5. Blueprint functions and events

Node Kind What it does
Set Ability Enabled / Is Ability Enabled Function / Getter The switch above (Ability = Slam).
Get Corridor Action Getter Slam: from the hang until landing.
On Action Started / Ended Event dispatchers One pair per slam.
Is Belly Flopping Getter The kit's older name for the slam state. On the Corridor Hero component it is Is Slamming.

6. Use your own animation

Leave Anim Set empty; switch on Get Corridor Action = Slam (hang and drop; the landing is a normal landing in your Anim Blueprint).

7. See it in the demo

Course1_RunAndJump: jump onto a stack of crates and press Slide in the air.

8. Pitfalls