Hi everyone,
I'm in a big trouble with global transition and multi state.
In my project, I have a simple monster, which can attack or being hit by the player.
I have tested two different approach. Here's my FSM :
In the "Wait Next Atk" state I have a Wait action with the attack speed of the monster in parameter.
With this FSM, the Wait action continue to trigger the "Prepare Atk" state even if the monster is hit, but sometimes the Wait action stop and the FSM is blocked on the "Get Damage" state.
With this FSM, anything is ok but the attack speed is reset each time the player hit the monster.
And with this FSM, the monster attack each time he's being hit by the player. So the monster attack very quickly.
Do you have any ideas how I can setup this multistate (casting attack + being hit) ?
Thanks in advance, a nice day for everyone !