I am evaluating PlayMaker for a project and I’ve run headlong into a problem: saving/restoring an FSM. There doesn’t appear to be any support for that, but I just can’t believe it as tons of people are shipping games with it.
I’ll use a simple example: I make a blinking light using playmaker (2 states - On
, Off
- each with a Wait
action on it). When I save the game state, the light is either in On
or Off
state and there is X seconds left on the Wait
action to switch to the other state. How do I restore so that after loading it:
- the proper state is active, whether it was
On
orOff
when it was saved - the
Wait
action has the same amount of time left to wait for (as an example: 0.25s out of a 1s timer)