Brackeys / 2D-Character-Controller

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

Adding the CancelFormerMomentumOnJump option on the script #12

Open Eranot opened 5 years ago

Eranot commented 5 years ago

Fixing issue #11

A boolean check was added to cancel former momentum on jump. Checking it will make the former momentum be canceled before the player jumps, resulting on the player always jumping the same amount, even if it is going down or up. In my experience, this makes the player feel a lot better.