I'm working on a little platformer, which of course has a button you can press to jump. In most platformers, pressing the jump button quickly makes your character do a short little jump, while pressing and holding the jump button makes the jump higher.
I wanna add that function since pressing the jump button makes the player jump as high as I set it. But I wanna also make it so that the game checks if the player is still pressing the jump button.
so how?