Playmaker Forum

PlayMaker Help & Tips => PlayMaker Tutorials => Topic started by: colpolstudios on October 14, 2013, 05:59:52 PM

Title: request more information on action co routine [SOLVED]
Post by: colpolstudios on October 14, 2013, 05:59:52 PM
Is there a video showing how to correctly use this action?

Within my fist game using playmaker When killed you should be invincible for a short time, however I do not know how to correctly set up a co-routine.

With the information I should be able to eliminate this issue.


Title: Re: request more information on action co routine
Post by: jeanfabre on October 16, 2013, 03:04:54 AM
Hi,

 This action is only suppose to call a function on a monoBehavior as  coroutine. I think however you want to do it another way, cause I don't think you have your function as a monobehavior method right?

 within PlayMaker, everything is a coroutine! :) within state, you run actions, when you are done with them, one way or the other, an event if fired and the state transits to another state, that's how you stop the "co routine", The concurrency between two features can be done within the same states, as actions can run different things, OR have several Fsm working for the same feature at the same time and reacting to the same global event to start and stop.

 I hope this make sense. In short, don't over thingk this, "Co routine" is a no brainer in Playmaker :)

Bye,

 Jean
Title: Re: request more information on action co routine
Post by: colpolstudios on October 16, 2013, 07:54:59 AM
Thankyou for your time and helpful explaination.

Sorry for any confusion on my part I am new!

Solved
Title: Re: request more information on action co routine [SOLVED]
Post by: jeanfabre on October 17, 2013, 01:13:56 AM
Hi,

 Don't worry. It's always good to ask this kind of questions.

Bye,

 Jean