In some situations it may be beneficial to launch the character in a certain way, maybe there's a special jump, being hit by a large attack, dodging away from something, etc.
In this instance I'm going to implement a dodge with a character launch.
The dodge animation has had a character launch anim notification added onto it, which will be detected by the anim blueprint and sent to the Character Blueprint.
Here I have set up the activation of the dodge roll, setting the launch variable and the animation to play.
When the animation plays, the notify will activate a custom event to launch the character at the right time.
This has been created in this way so that any time we need to launch the character it can be performed through this one function instead of copying the same code several times.
No comments:
Post a Comment