Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TVISARL on March 08, 2020, 05:28:37 AM

Title: Waiting for FSM completion
Post by: TVISARL on March 08, 2020, 05:28:37 AM
Hi, all!

In my game, FSM 2 should not start before FSM 1 is finished.
How can I arrange that?

Thanks in advance.
Title: Re: Waiting for FSM completion
Post by: Broken Stylus on March 08, 2020, 08:14:37 AM
Title: Re: Waiting for FSM completion
Post by: jeanfabre on March 09, 2020, 04:24:06 AM
Hi,

 you can also broadcast a global event if you don't want FSM 2 to know about FSM 1. FSM 1 can broadcast an event "STEP X IS DONE" and so you can keep things boxed this way and the step X can be then modified or reworked without affecting other fsm that simply want to know when step x is done.

Bye,

 Jean
Title: Re: Waiting for FSM completion
Post by: TVISARL on March 10, 2020, 09:38:34 AM
Got it. Thanks to you both.