playMaker

Author Topic: "SequenceEvent" how to use?  (Read 2805 times)

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
"SequenceEvent" how to use?
« on: November 26, 2013, 11:42:41 AM »
Hi,

can someone explain the "SequenceEvent" action for me, i don't quite get whats it used for, but i suspect it could be usefully to us.

Thx Andy

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: "SequenceEvent" how to use?
« Reply #1 on: November 28, 2013, 04:50:58 AM »
Hi,

Sequences works by waiting for the "finish" event of actions in order. So the second action in the state stack will not start until the first action "finished".

[EDIT] Sorry, completly mis readed the post:

Never used that action before actually :) From the description, it measne it's going to fire the transitions in order, so in your state if you have three transitions, they will be fired in order.

Does that make sense? If not, I can work out a small sample to show how it works.

bye,

Jean
« Last Edit: November 28, 2013, 07:29:30 AM by jeanfabre »

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
Re: "SequenceEvent" how to use?
« Reply #2 on: November 28, 2013, 06:43:41 AM »
Hi,

 Sequences works by waiting for the "finish" event of actions in order. So the second action in the state stack will not start until the first action "finished".

Does that make sense?

mhh kinda, but thats not what the tooltip suggests by "Sends the next event on the state each time the state is entered."?

Where does this "state is entered" logic comes into play, otherwise your description sounds like a alternative to the "action sequence" option?

So how does it differ from using the "action sequence" option and maybe can u give a simple example?

thx Andy

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: "SequenceEvent" how to use?
« Reply #3 on: November 28, 2013, 07:29:58 AM »
Hi,

 Updated reply... sorry did not properly read your question...

Bye,

 Jean

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
Re: "SequenceEvent" how to use?
« Reply #4 on: November 28, 2013, 09:44:53 AM »
Ah "transitions" that makes sense, so u could write a state that has 3 custom transitions and iterate/send those based on reentering the state.

So "SequenceEvent" acts similar to "Send Event", but uses the states transitional setup events, rather than handing them directly to the action. So its a "Send next transition" action.


Thx Andy