I have tried so many combinations for a week now, and this (simple?) action will not behave for me.
Fighting game, 1 player and 1 enemy. The following is simplified to show the problem. Sprite animations are in "quotes".
GAMEPLAY
While in "Idle" (not moving) pose, the enemy should "Attack" once every 4 seconds. This works fine.
If player attacks enemy during "Idle", the enemy should "Block" then return to "Idle".
Similarly, if player "Dodge"s enemy's attack, enemy should be "Dazed", then return to "Idle".
The nemy will sometimes attack directly out of the "block" or "Dazed" animation instead of waiting 4 seconds.
Here are my events as I have them now:
1.(Glob.Var.)AttackType=0
Is anim "Idle" playing : Set AttackType to 1
X Is anim "Idle" playing : Set AttackType to 0
2.AttackType=1 : Wait 4 secs, Set anim to "Attack", Set AttackType to 0
Trigger once :
Thank you in advance!