Hello.
How can I make the character jump as soon as it hits the ground if you press and hold the spacebar ? I need it constantly jumping with no wait time when spacebar is being pressed.
Hello.
How can I make the character jump as soon as it hits the ground if you press and hold the spacebar ? I need it constantly jumping with no wait time when spacebar is being pressed.
You can use a conditional to check Input.GetKey(KeyCode.Space) and that your character is grounded within Update(), if both are true run your jump method
Oh I just noticed this line, which disables the jump right after the button is pressed :
if (jumping.enabled && canControl && (Time.time - jumping.lastButtonDownTime < 0.2 )) {
So I just changed the 0.2 to 100 ![]()