playMaker

Author Topic: Running actions sequentially  (Read 2428 times)

kLy

  • Playmaker Newbie
  • *
  • Posts: 9
Running actions sequentially
« on: June 07, 2013, 03:07:39 PM »
Hey there

I'd like some clarification on how OnEnter and OnUpdate works. I was under the impression that things run sequentially top to bottom in a state rather than running all concurrently. This would be great to have since it let's you do things sequentially within a state rather than needing to create a new state for each item in the sequence.

In my example:
1. Unhide character - instant
2. Play animation - a few seconds
3. Play another animation - a few seconds
4. Hide character -  instant

I'd like to run the actions 1-4 in sequence, so: unhide, play some animations, hide.

But it seems like 1-4 gets run concurrently.

Is there a way to have the sequential behaviour? One of the things I liked about being able to stack up multiple actions per state is that I can do many things with just one node, rather than having a gigantic tangle of nodes like in uScript or Kismet because I need one node for every action.

Is there a way to get the sequential behaviour within a single state?

1982

  • Junior Playmaker
  • **
  • Posts: 71
Re: Running actions sequentially
« Reply #1 on: June 07, 2013, 04:07:52 PM »
I am not sure but have you tries "Wait" action if it does the job by placing it between the actions?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Running actions sequentially
« Reply #2 on: June 07, 2013, 05:06:31 PM »
Use states to separate the actions and finished events to trigger transitions.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

playb0t

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Running actions sequentially
« Reply #3 on: August 29, 2013, 11:32:38 PM »
Just a heads up to anyone interested in this, action sequences have now been added as of 1.72 (click on the gear next to the state name in the inspector, and select "action sequence" from the popup menu).