Good day! I have a problem. I put a player on the event of recovering Stamina. And after that, the player starts to play badly the attack animation. Sometimes he slows it down, sometimes he does not play completely, sometimes he does not play at all a little bit twitching. But as soon as I delete this event, everything goes as it should and the animation immediately plays well. I shot a short video to make it easier for you to understand.
https://youtu.be/O2ksSobKhX4
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
this method did not help
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
this method does not work
The goal is to prevent adding the effect again in case it's already applied, as this might be the cause for canceling your animation.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I’m just sorting out a few methods, but it doesn't help
Why do you need the event?
everything is simple. logically, when we run we get tired. We run at a certain speed. Therefore, I check the speed of the combatant and the event works to reduce stamina. When we stop we rest, I also check the combatant for speed if it is less than the speed of the run we rest.
I think I'll need a Unity test project with your setup where this happens, so that I can investigate where the animation issue is coming from.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I'd just need a scene with your player and an enemy, so you don't need to include all the assets you have in your project :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!