Variable Jump Height
Kind: Modifier · Add Component: Character Modules > Modifiers > Variable Jump Height
Cuts the jump short when the button is let go. A tap is a hop, a hold is a full jump.
Letting go of jump early cuts the jump short: a tap is a hop, a hold is a full jump. The same button gives the player fine control over height.
Inspector
▼Variable Jump Height
CharacterCharacter (Character Motor)
Cut Above6.75
Cut To0.25
Origin. Super Mario Bros. (1985).
How it works
Changes Jump: let go of Jump to cut the rise.
Variable Jump Height: let go of jump early and the jump is cut short. While the character is still rising faster than cutAbove, releasing the button multiplies the rising speed by cutTo once, after that step's move (as classic 3D platformers do, in place of that frame's gravity). The classic 3D platformer studied for this package (D33) quarters it, which makes a tap about 40 % as high as a held jump. Jumps that cannot be cut short (a triple jump) are left alone.
Combine it
- Needs: Jump. The Inspector warns while one is missing.
- Used by the presets: Retro Platformer.
Properties
| Property | Description | Range | Default |
|---|---|---|---|
| Character | The character this module belongs to. Drag its Character Motor here. | None | |
| Cut Above | The cut only happens while rising faster than this, m/s. | 0 or more | 6.75 |
| Cut To | Rising speed is multiplied by this when jump is let go. | 0 to 1 | 0.25 |