Hi! i’m trying to polish some aspects of my skill system and i’m having troubles with the animation transition between skills.
First let me explain a litle about the system and how it goes with the animations.
My abilities are a component that is added into the character, when you want to trigger an ability, you first go into this ability method.
if all requirements are met (not in cooldown, can play with current weapon, etc).
it calls the character method “PlaySkill” and sends the animation as a parameter.
this is “PlaySkill” method.
and this is the animator state and transition
so you first go into the skill component , then the character overrides the animation of “SkillGeneric” and plays it by triggering the “SkillGeneric” parameter trigger on the animator.
as soon as the “skill generic” animation starts, i set the flags of “IsPlayingSkill” with a event on the animation.
What is the problem?
i cant use transition on “Any State” → Skill Generic because if you keep the skill button down, you will be sending a bunch of triggers every second and it will keep restarting the initial transition.
anyone have any idea on how to fix it or an alternative?
my final goal is:
- To have transitions between skills
- To be able to keep the skill button press and the animation waits until it finish before it plays again (or plays a diferent animation)
- To not be able to cast a diferent animation while one is already playing if i want to
- To be able to interrupt some animations while playing if i want to
this is already working, the only problem so far is when i include transitions, because during that litle transition time the flags are not triggered yet.
if there’s any question please feel free to ask, i know its bad explained. Thanks in advance!.