CMCharacter Modules 0.1.0

Stick Response

Kind: Modifier · Add Component: Character Modules > Modifiers > Stick Response

Shapes how stick tilt becomes speed. Small tilts give fine control, such as walking a narrow beam.

How the stick's tilt becomes speed: a curve gives fine control at small tilts, and the Walk key moves at a set slow speed. It decides how easy it is to walk a narrow beam.

Inspector
▼Stick Response⋮
CharacterCharacter (Character Motor)
Curve1
Walk Tilt0.5
The Stick Response component in the Inspector, with its defaults.
Origin. Super Mario 64 (1996) introduced the analog stick's curve to 3D platformers; the walk key is the shooters'.

How it works

Changes every state: shapes the stick and the Walk key.

Stick Response: shapes the movement input once, before any state reads it. The stick's tilt is raised to curve: 1 keeps it straight, 2 makes half tilt ask for a quarter of top speed, as on classic console sticks, which gives fine control at low speed. While the Walk button is held, the tilt is first scaled by walkTilt, so a keyboard, whose keys are always fully pressed, can walk.

Combine it

  • Used by the presets: Arena Shooter, Competitive Shooter, Surf, Retro Platformer, Modern Platformer, Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
CurveThe stick's tilt is raised to this power: 1 straight, 2 half tilt asks for a quarter of top speed.0.01 or more1
Walk TiltShare of the stick's tilt used while the Walk button is held.0 to 10.5

Additional resources