CMCharacter Modules 0.1.0

Wall Slide

Kind: State · Add Component: Character Modules > States > Wall Slide

Slides slowly down a wall the character presses into. It sets up the wall jump.

Sliding slowly down a wall while pressing into it, and the start of the wall jump. It turns two walls into a way up.

Inspector
▼Wall Slide⋮
CharacterCharacter (Character Motor)
Slide Speed3
Slide Acceleration8
Into Angle60
Same Wall Angle45
The Wall Slide component in the Inspector, with its defaults.
Origin. Mega Man X (1993) and Super Mario Odyssey (2017).

How it works

An action of Falling. Starts from the Falling mode and Jump, on: falling into a wall. Its kind of air move is wall, which a flight may forbid. Ends on landing, pulling away or the wall ending, then the Falling mode and the Walking mode.

Wall Slide: pressing into a wall while falling, the character slides slowly down it, as in modern 3D platformers, ready to wall jump (Wall Jump). Pulling the stick away, landing, or the wall ending lets go.

No climbing one wall forever: after a wall jump, a wall facing roughly the same way cannot be slid on above where that jump left it, until the character lands. Walls facing each other (a corridor) always allow another slide. The original's slide speed is not published; the defaults are a choice. Numbers from the modern 3D platformer measurements (D44).

Combine it

  • Needs: Air Move. The Inspector warns while one is missing.
  • Priority 23: when several states could run, the highest priority wins (see How modules combine).
  • Used by the presets: Modern Platformer.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Slide SpeedFastest slide down the wall, m/s.0 or more3
Slide AccelerationHow quickly the slide reaches its speed, m/s².0 or more8
Into AngleA wall counts while the body or the stick points into it within this many degrees.0 to 9060
Same Wall AngleWalls whose faces point within this many degrees of a wall jumped from count as the same wall.0 to 18045

Additional resources