Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ashwin782 on April 04, 2017, 12:06:56 PM

Title: How to run a second action before first action is completed?
Post by: ashwin782 on April 04, 2017, 12:06:56 PM
Is it possible to start running  a second action in a state before the first action gets completed?

In my situation the first action starts a slow fade in of an image , so exactly half way into the fade in , i want the second action , which is a text to appear.

How do i do this ?

I can only find delay option . Please help me . This is my 1st post on PM .

Thanks in advance. :-)
Title: Re: How to run a second action before first action is completed?
Post by: elusiven on April 04, 2017, 05:35:31 PM
in one FSM, only one state can run at the same time, and one action, roughly all at once or in a sequence one by one.. You can however, split some behavior into two different FSMs and then that can run at the same time.
Title: Re: How to run a second action before first action is completed?
Post by: jeanfabre on April 05, 2017, 01:38:32 AM
Hi,

 Adding to what Elusive said.

 then once you have several Fsm that forms a complex behavior, you can use global events or system events ( like triggers for example) so that each fsm starts their behavior as expected, that's how you can synchronize fsm behaviors to achieve what you want.

If you have trouble getting this very important concept, let me know, I'll do a quick sample showing how to achieve fading and delayed text.

 Bye,

 Jean