- Home /
I need help with adding double jump to my player movement script
I have figured out movement and jumping, but i need to add double jump to my script. here is the script :
In your code that checks for jump input, you could add an integer that handles "times jumped" and check if times jump is <2. If it is, trigger jump code and timesJumped++. Once player receives grounded check again, set timesJumped back to 0. This theoretically, should allow the player to jump twice. However if you have a special animation for double jump, you'll want to incorporate that, but its as simple as saying if timesJumped 1 and <2 then do double jump animation. Also if you use Root $$anonymous$$otion then handling velocity won't even be a problem.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
How to make FPS Camera bounce when walking 1 Answer
Distribute terrain in zones 3 Answers
sensitivity slider/ drop down help 0 Answers