So i'm currently working on a vertical platformer where you have to make it as far as possible by jumping to opposite walls. I want to make it so that if I tap spacebar, then the player jumps and lands shortly after on the same wall, but double tapping it makes it so you switch to the opposite wall. No clue how to do it, so i'm asking for help. Thanks in advance!