Playmaker Forum

PlayMaker News => General Discussion => Topic started by: faezeh on November 14, 2018, 09:27:42 AM

Title: how many FSMs can be active at the same time?
Post by: faezeh on November 14, 2018, 09:27:42 AM
Is it possible to have several active FSMs at runtime? if yes, how it can be implemented?
Title: Re: how many FSMs can be active at the same time?
Post by: djaydino on November 14, 2018, 11:00:29 AM
Hi.
Yes and you should actually use many FMSs instead of 1 big fsm.

To add a fsm to an object that already has a fsm, you can use the 'Add Component' on the inspector.

Or (more easy)

In the Playmaker Editor screen, on the top left (next to "Lock") click on the fsm tab and there you can create a new fsm (which will automatically be added to the gameobject inspector.


To communicate between FSMs you can use the "Get/Set Fsm" Actions
as well as send event globals or send event by name.

Avoid using Globals for data
Title: Re: how many FSMs can be active at the same time?
Post by: faezeh on November 14, 2018, 02:09:33 PM
Thanks for your answer, but I mean is it possible two different States from two different FSMs be active at the same time in a parallel manner?
Title: Re: how many FSMs can be active at the same time?
Post by: jeanfabre on November 15, 2018, 12:44:20 AM
Hi,

 yes, fsm operate in parallel like regular components.

Bye,

 Jean