playMaker

Author Topic: How to manage the order of execution when using 'Send Event' action  (Read 432 times)

GMPlay

  • Playmaker Newbie
  • *
  • Posts: 28
PLEASE REFER TO THE IMAGE ATTACHED.

I am trying to figure out if there is a RULE for order of execution of Send Event actions on the same fsm.

Further more, what is the best practice to manage order of execution when using Send Event?



djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7621
    • jinxtergames
Re: How to manage the order of execution when using 'Send Event' action
« Reply #1 on: August 28, 2022, 02:13:10 AM »
Hi.
The events are 'Started' from top to bottom, but they do not wait until the previous one is 'Finished'

if you right click on a empty space in the State window, you can 'enable sequence'.
This way the actions will wait until the previous one is finished.

sending multiple events to a fsm in the same frame can give issues as the state might not have finished all its actions yet and go to the next sendet event.

GMPlay

  • Playmaker Newbie
  • *
  • Posts: 28
Re: How to manage the order of execution when using 'Send Event' action
« Reply #2 on: August 29, 2022, 01:46:54 AM »
Thank You Good Sir!!  :D

It seems I have somehow managed to completely skip "Action Update Order" tutorial on the Playmaker Youtube channel. Being a newbie I didn't even know there was such a thing 'Action Sequence'

This solves many issues I was having and I have been going  :-\crazy due to those, as my algorithms worked in theory but did not yield expected results in implementation.

If you hadn't mentioned action sequence I wouldn't have known.

Thanks again.