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.
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
| Property | Description | Range | Default |
|---|---|---|---|
| Character | The character this module belongs to. Drag its Character Motor here. | None | |
| Activation | Hold: sprints while Sprint is held. Toggle: a press starts it, another press or stopping ends it. | Hold | |
| Speed Scale | Top walking speed is multiplied by this while sprinting. | 1 to 3 | 1.4 |
| Max Angle | Sprints only while moving within this angle of where the body faces, degrees; 180: any direction. | 0 to 180 | 60 |
| Minimum Tilt | Sprints only with the stick tilted at least this far, 0 to 1. | 0 to 1 | 0.5 |
| Stamina Per Second | With a Stamina module: stamina points sprinting uses per second. | 0 or more | 12 |
| Wait After Empty | With a Stamina module: seconds sprinting waits after the bar ran empty. | 0 or more | 1 |