Hey, I’m running into an issue with a simple FSM where two states will drop to the next state, if an event is triggered. The problem is that:
Event triggered -> State ‘A’ switches to state ‘B’, but immediately state ‘B” switches to state ‘C’ with no pause between. Basically I’m trying to have it, if player gets hit one, he goes A -> B, but hit twice, B -> C, right now, he’s going A-B-C all in one hit, with one event being fired.
Attached is a demo of the FSM. (Player goes from Grown -> Mini -> Dead with one hit and event)
Yeah, the raised events will hold true for 1 frame and the transition are checked in the same frame that the state has been entered and thus why both transitions are true for that frame.
I will take a look at possibly making the transition checks 1 frame later.