I want to find a way, how can a make my character to jump. My AnimGraph is ready, I just have to set the input. What should I do? I don’t understand what is the Jump() function. It’s easier to write in blueprint? Thanks!
You should check the TPP blueprint project template, there is jump implemented. I’ll explain this from my memory but please check it:
- Create input action and map it to some key.
- Edit player controller blueprint to handle jump input, then call Jump method.
- Engine will handle jumping internally if it’s enabled in your character movement component.
- Animation of a jump is handled in animation blueprint by state machine. Transitions that are defined between states are constantly monitoring flags returned by movement system (as far as I remember bIsFalling).
He can find a good answer in this Question:
But since we haven’t heard back from him in a while, i will mark this question as resolved. Feel free to reopen it if you need some more explanation.
I have a character which has a “pre-jump” phase in the jump begin animation, is there some way I can modify this function so that it does not instantly move my character into the air but waits for a short time between animation start and apply the jump velocity?