In this quick Unity tutorial I go over how to do a double jump, or X amount of jumps while in the air. This is an extension to our previous video which explains how to detect if we are grounded, how to animate our jump and then how to move our sprite with an upwards force.
In this video you will learn how to:
- 1:38 - modify our jump script to allow double jumps
- 3:00 - zero out our vertical velocity
- 4:00 - replay our jump animation when doing a double jump
- 5:15 - modify our script to do 2,3,4, or unlimited amount of jumps in the air