playMaker

Author Topic: How to run a second action before first action is completed?  (Read 1512 times)

ashwin782

  • Playmaker Newbie
  • *
  • Posts: 3
How to run a second action before first action is completed?
« 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. :-)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: How to run a second action before first action is completed?
« Reply #1 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.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to run a second action before first action is completed?
« Reply #2 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