Hi, I have one problem that is if the player press the right arrow key player has to move right for left arrow key player move left for jump key I’m using space as the key if the player press space key player has to jump. if the player is grounded the variable is grounded is become true these are working fine no problem.
But my problem (I’m using Hold for space key because jump key has to be pressed to make the player jump).
I have to create like if the player holds the jump key and is grounded is true then wait for second and then make a player jump. NOTE: if the user keeps the jump key in hold position after the jump. the player should not jump again even is grounded variable is true. how is this possible. I don’t know how to do this please help me