I have a blocking, dodge left, and dodge right animations but i dont know how i would go about setting those up in blueprint. Any tutorial or reference videos i can watch to understand how it works?
Hey @oAnubus!
The easiest way to do so would be to set up your conditional variables and use branches (blueprint if statements) to tell your character what it’s doing.
Example: If isMoving is true, roll based on directional value else block.
Here is a great non-Epic affiliated video that follows the same concepts/format for a jump/dodge and roll system:
Directional Dodge And Roll Animations - Unreal Engine 4 Tutorial
I hope the above solution works for you!
It’d be best to make the blocking as a functions that way if someone hits the character while blocking, they take no damage?
Hey @oAnubus,
That is definitely a good way to set it up. Your function (in theory) would set your block animation to active and make your character invulnerable under the correct circumstances, then your “endBlock” function that is called on release will do the opposite and/or undo whatever your block function set.
Essentially it’s still going to need your branching paths, you are just adjusting the outcome to fit your needs.
I hope this helps.
Thank you this definitely helped get an idea on how I want to set this up