CMCharacter Modules 0.1.0

Sprint

Kind: Modifier · Add Component: Character Modules > Modifiers > Sprint

Runs faster while a button is held. Speed becomes a choice.

Holding a button runs faster. Ordinary movement stays readable, and speed is a choice.

Inspector
▼Sprint⋮
CharacterCharacter (Character Motor)
ActivationHold ▾
Speed Scale1.4
Max Angle60
Minimum Tilt0.5
Stamina
Stamina Per Second12
Wait After Empty1
The Sprint component in the Inspector, with its defaults.
Origin. Common to most third-person adventures; in Dark Souls (2011) it spends stamina.

How it works

Changes the Walking mode: Sprint runs faster.

Sprint: while the Sprint button is held (or after it was pressed, with Toggle), walking aims for speedScale times its top speed, as in third-person action games and military shooters. It sprints only on the ground, standing up, with the stick tilted and moving roughly where the body faces, so in a shooter strafing and backing up stay at normal speed. A jump keeps the speed it left with. A toggled sprint ends when the character stops.

With a Stamina module (optional), sprinting drains staminaPerSecond and needs some stamina left; once the bar is empty, sprinting waits waitAfterEmpty seconds. Without one, sprinting is free.

Combine it

  • Needs: Ground Move. The Inspector warns while one is missing.
  • Used by the presets: Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
ActivationHold: sprints while Sprint is held. Toggle: a press starts it, another press or stopping ends it.Hold
Speed ScaleTop walking speed is multiplied by this while sprinting.1 to 31.4
Max AngleSprints only while moving within this angle of where the body faces, degrees; 180: any direction.0 to 18060
Minimum TiltSprints only with the stick tilted at least this far, 0 to 1.0 to 10.5
Stamina Per SecondWith a Stamina module: stamina points sprinting uses per second.0 or more12
Wait After EmptyWith a Stamina module: seconds sprinting waits after the bar ran empty.0 or more1

Additional resources