1 decade ago by eLouai
An effect similar to biolab, when jumping what is the best way to allow a user to control the jump height (by keeping the key pressed longer).
I have my own ideas, but was curious what was best practices regarding this issue.
I am assuming I would need to check with the state of the key in the game loop, the longer its help down the higher he goes, so for the first 3 frames the character is just bending at the news getting ready to jump?
Ideas on code implementation?
I have my own ideas, but was curious what was best practices regarding this issue.
I am assuming I would need to check with the state of the key in the game loop, the longer its help down the higher he goes, so for the first 3 frames the character is just bending at the news getting ready to jump?
Ideas on code implementation?