Character Continously Jumping
I am trying to program some jump functionality with my character. When i play he is not jumping, but on the initial jump button when its pressed he jumps as intended but then carries on jumping after which is not intended.
This is all i have done on jumping as this project is created from scratch. Can someone tell me what i need to do to stop him from constantly jumping. My initial idea was to have a variable of "canJump" be set to true when ever a person hits the jump button, then on release it sets the "canJump" button back to false.
i think instead of just set the bCanJumpFlag. in the character class there is a function named :: - Jump() - StopJumping()
you can use that in your press event.
and i also wondering about your animation.. are you using the state machine?? (locomotion??) i think you had to take a look at the thirdpersoncharacter from unreal. because i think your problem also implies the animation (if you just stay in the jump animation state after you jump).
answered Mar 17 '15 at 08:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here