Hi there, so I'm doing a simple endless runner, but the jump function is static. What would be the best approach to have a jump that varies on how long the button is pressed? So a tap is a hop while continuing to press varies how high the player jumps?
I'm not looking to replicate the SMB jump though that would be awesome.
I tried searching and was surprised all I could find were mostly double jump style questions, not "while down" effective how high / long the jump is like SMB