Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on August 27, 2015, 08:21:33 AM

Title: Fsm State Synchronizer [August 2015]
Post by: jeanfabre on August 27, 2015, 08:21:33 AM
Hi Everyone,

 Was working on this for a while, and finally found time to finish it :)

You can get it on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) or download it below:

PlayMakerStateSynchronizer.unitypackage (https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/master/PlayMaker/Ecosystem/Custom%20Packages/StateSynchronizer/PlayMakerStateSynchronizer.unitypackage?raw=true)

(http://i.imgur.com/J1561uK.png)

(http://i.imgur.com/GimEGhk.png)

So, now you can synchronize two fsm together. You define an Fsm source and an Fsm target, the target will check the source and if the active state name on the source is found on the target and it's not the current active state it will transit automatically.

You have several options for matching rules, like you could have "State 2 bis" in your target, and if the source enters a state named "State 2", nothing will change if you have set the rule to "If Doesn't Start With" or "If Doesn't contains" for example. this allows for more advanced synchronization.

It's straight forward to use, but I am wrapping up a demo to illustrate it, coming up mid next week.

Bye,

 Jean
Title: Re: Fsm State Synchronizer [August 2015]
Post by: Lane on August 27, 2015, 08:25:05 AM
Nice work! Thats a pretty handy feature =)
Title: Re: Fsm State Synchronizer [August 2015]
Post by: jeanfabre on August 27, 2015, 08:29:36 AM
Hi,

 Yep, especially with the various rule options, cause you can then have some other states where you can do complex flows yet not suffering from being synched or prevent rentering if you are already in the state to synch

Bye,

 Jean