2.5D Platformer — Double Jump #3
An extra little boost to reach new heights!
A very quick article! If you haven’t read the previous article which delves on my own implementation of this particular controller, go read it!
Adding a double jump is incredibly easy. In the same Input method, just add an else if below the normal jump conditional, check if the player has double-jumped, and add the double jump functionality there. As simple as that. There’s nothing much to say here, so I’ve commented the code with everything you need to know.