playMaker

Author Topic: how many FSMs can be active at the same time?  (Read 2001 times)

faezeh

  • Playmaker Newbie
  • *
  • Posts: 6
how many FSMs can be active at the same time?
« 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: how many FSMs can be active at the same time?
« Reply #1 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

faezeh

  • Playmaker Newbie
  • *
  • Posts: 6
Re: how many FSMs can be active at the same time?
« Reply #2 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: how many FSMs can be active at the same time?
« Reply #3 on: November 15, 2018, 12:44:20 AM »
Hi,

 yes, fsm operate in parallel like regular components.

Bye,

 Jean