Hi, I've recently bought Playmaker and find it really awesome. I've already messed around with quite a few FMSs, I've created events and fired them from custom scripts and the other way round.
But I cannot, for the life of me, figure out how to react to a button press using just the FSM.
What I've tried:
create an FSM with two states:
1) Start -> Listener
2) DisplayGUI
In the Listener there are two actions:
Get key (every frame)
Bool Test (every frame)
When the Key gets pressed, the press is stored, the bool test is passed and the event is fired to move to state DisplayGUI.
Everything works. The event gets fired, the state changes correctly.
But it stops working if on the second state I set up the same config:
State DisplayGUI:
Get key (every frame)
Bool test (every frame)
I want to press the same key and then fire the event to get back to listener state and stop displaying the gui. What I get is the error:
HUDManager : FSM : Loop count exceeded maximum: 1000 Default is 1000. Override in Fsm Inspector.
Can someone help me out please?