How to check if player is jumping?
Hello, I recently followed Alan Noon's tutorial for creating a 2d side scroller. However this used a blueprint and I wanted to instead write it in C++, which I am new to. I've had some real trouble with changing the animation when the player jumps. I've tried using the ACharacter::IsJumping and bPressedJump and PlayerVelocity.Z > 0. I'm now completely stumped. I've searched around and couldn't find anything so I thought I'd post here.
Here state in an Enum.
Sorry if this has already been posted, I've looked through a lot of posts and couldn't find an answer.
Try using GetCharacterMovement()->IsFalling() to check if your character is falling/jumping. I know this questions was posted almost a year ago. I was having a similar problem and thought I should post how I solved it. However, I'm just starting to use ue so there could be a better way (without using blueprints).
answered Sep 14 '16 at 12:46 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here