I continue to deal with the combat system. How can I implement the rollback system? I understand that I need to make the movement of the character with the camera horizontally and the activation of the roll animation when the button is pressed. How can I do that?
E.g. setting up the roll as an ability of the combatant (using battle events to animate it), using control maps to start it.
Another option is using a Global Event that's activated when the key is pressed and uses a game event to do the roll.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
In this case, you need to use the ORK Input Key input origin instead of the Key Combo, add the 2 keys and set needed to All.
Key Combo input is e.g. for A>A>B
ORK Input Key input needing All keys is e.g. for A+B
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Also, try adding a Wait node (e.g. 0.1 or even 0 seconds) between moving and enabling auto animations, and make sure to enable Use Position Change in your combatant's movement settings (at the bottom).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Also, did you try this without disabling auto animations?
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
It might be best to not use ORK's auto animations and use a float parameter in your animator controller that is set to the combatant's speed instead. In ORK's animation setup, enable Set Horizontal Speed and define the name of a float parameter and ORK will set it to the combatant's movement speed - you can have transitions to idle and different movement animations based on that.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Set up a float parameter in your animator controller where ORK will store the player's movement speed into - e.g. name it speed. This is what you set the Horizontal Parameter in ORK's mecanim animation setup to.
ORK will now store the player's movement speed into that parameter.
In your animator controller, you can now make transitions to idle, walk or run animations based on the speed (e.g. using a blend tree).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
As for the idle/movement animations, it's best to only have movement (walk, run, etc.) in the blend tree and have idle as a seprate state, which transitions to the blend tree if speed is greater 0 and back to idle if speed is 0 (or use 0.1 for the value of both).
Unity's free Unity-chan asset has a good setup like that if you want to check it out :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!