HybridSquirrel-Repos / Abenteuer-Zeit

0 stars 0 forks source link

Jump hight issue #3

Closed HybridSquirrel closed 3 years ago

HybridSquirrel commented 3 years ago

After porting to new inputsystem jump mechanic is broken. Dynamic value is needed for the range of hight to be fixed.

HybridSquirrel commented 3 years ago

Links for fixes: https://www.youtube.com/watch?v=pAv2ABIQy6s https://www.youtube.com/watch?v=aB3_QUMkHIk

HybridSquirrel commented 3 years ago

Fixed by using public void OnJump(InputAction.CallbackContext value) { if (value.performed) { UpdateJump(true); }

    if (value.canceled)
    {
        UpdateJump(false);
    }
}

and animation with this bug by checking if value is true