Brackeys / 2D-Character-Controller

Free 2D Character Controller for Unity.
https://youtu.be/dwcT-Dch0bA
1.16k stars 1.62k forks source link

Unwanted extra jumps #46

Open Sadanand626 opened 2 years ago

Sadanand626 commented 2 years ago

Previously, I had a problem with the character performing infinite jumps once he is off the ground. Another poster some time back added: Cancel Former Momentum on Jump to the Character Controller script. This helped the issue. The character can no longer jump infinitely, but if I rapidly press the button while he is in the air, he will get an extra couple of jumps in there. However, these are not smooth double jumps, they're more like little upward thrusts that last as long as the character is airborne.

This is probably a pretty basic issue, but if someone could help me out with this, I'd appreciate it.