Control Jump Height Midair
Hey, I'm fairly new to this.
I'm dealing with a 2D side-scroller, and I'd like to control a character's jump height by simply holding the button, and releasing it to get a lower height.
So far I've tried, the character either abruptly falls, making a sharp jump to fall, or the character makes a small midair jump. I'd like it to go smooth. In easy words. I'd like it to work like Super Mario Bros.
Here's what I've tried so far. I used enumerator to assign different jump states to create conditions, and changed velocities accordingly. Or so I'd like to think.
asked Nov 14 '18 at 10:14 AM in Blueprint Scripting
not sure with 2d but i know with the third person character you can use the jump max hold time which limits how long the character can keep jumping. basically allowing the character to keep going up as long as jump is held, the option itself is what places a limit on how long the jump can last. in your particular case you could set it to about 1 second, then is the player holds jump for 1 second they will go to the height accordingly, but if they release before 1 second it will stop the jump when they release. guess a bit hard to explain but check it out. in the third person character if you click the class defaults near the top, then look in the details panel for the character section, in the character section you will find the jump max hold time option as well as the max jump count option.
answered Nov 14 '18 at 02:33 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here