The idea is: Pressing w (jump button) when not pressing a or d (left and right buttons) you jump straight up, (no problem here) And while pressing a or d the instance variable for jumping is set to 1 or 2 (left and right jumping direction)
So, if jump = 1 and D is pressed I want the player to jump forwards and if jump = 2 and a is pressed I want the player to jump backwards. This is what I can't get working. Any tips?