Using Motion Warping
Last updated
Was this helpful?
Last updated
Was this helpful?
Soulslike Framework does not come with Motion Warping by default. However, it is very easy to enable it and get it going on your project.
Start by enabling the Motion Warping plugin:
Head inside the Soulslike Enemy (B_Soulslike_Enemy) class and add a Motion Warping component:
Next, in the event graph, find the Event PerformAbility method. Adjust it like so:
That's basically it! Now the warp target will be updated/cleared when the Enemy is executing an attack. The final step is to use the plugin provided MotionWarping Notify State in the enemy's montages:
For Motion Warping to work, your animation sequence must have Root Motion enabled.
You can follow the same logic and implement it for the player as well.
Add the Motion Warping component.
Adjust methods where an attack montage is being played so it updates/clears the warp target.
Use the Motion Warping notify.