Help with basic trigger animation

Hi guys,

Just wondering, why won’t the transition to Attack happen when i set the variable to True, see screenshot (in run mode), it remains in idle.

Thanks,
Primoz

Does it eventually switch to Attack, once the Idle animation completes? You can configure your states such that they don’t allow transitions until the current state has completed its animation. So, in your case, when the progress bar in the Idle state fills up, does it transition to Attack?

no, never transitions, keeps repeating idle forever

Can you expand Settings on the transitions and show what you’ve got there?

Before I forget, one thing to consider (probably unrelated to your current concern) is whether to use Boolean or Trigger params. The title of your post implies you’re using triggers, but you’re actually using a boolean. The difference is that triggers are one-time events, while booleans tend to remain in one state for a while. I tend to use triggers a lot more than booleans, as most of the time I want to “trigger” a transition from one state to another. Maybe in your case you want to remain in the Attack state for a while, in which case boolean makes sense. But I just wanted to clarify the term “trigger”, as it has a special meaning in this case.

Yeah sorry for confusing terminology, i want to remain in attack state hence boolean.

I believe the issue was since i had an Attack Integer beforehand, then i removed it and added a boolean, and my transition conditions somehow had the right settings. after i removed the conditions and readded the exact same ones it started working.

Thanks for your help.