playMaker

Author Topic: Actions being called twice  (Read 1720 times)

kocosephia

  • Playmaker Newbie
  • *
  • Posts: 7
Actions being called twice
« on: March 16, 2017, 02:26:34 PM »
Has anyone else had this problem? I'm pretty sure it's a playmaker bug.

1) What happened

Actions on an action sequence set to execute before any other action that uses the update loop will execute twice instead of once.

2) How can we reproduce it

Create new FSM

Create three states:

State 1: Empty, transitions to state 2

State 2: (Action sequence state)
   Action 1: int add action to increment variable X
   Action 2: wait any amount of time
   Action 3: int add action to increment variable Y
   Action 4: wait any amount of time then trasition to state 3
State 3: Empty

The result will be Variable X will have been incremented twice while Variable Y will have correctly only been incremented once.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Actions being called twice
« Reply #1 on: March 17, 2017, 02:21:41 AM »
Hi,

Good catch, I'll pass this issue on so that it can be addressed.

 Bye,

 Jean