Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: JennaReanne on June 05, 2013, 12:09:45 PM

Title: Run FSM problems
Post by: JennaReanne on June 05, 2013, 12:09:45 PM
Hi all,
I'm running up against some problems with "Run FSM" and "Finish FSM" and I'm not sure if I've set something up wrong or if it's a bug.

In my game the player can drag and drop a potion onto a number.  The number should then increase by 1.  Here's how I'm accomplishing this: the potion sends an event to the number when it is dropped, and the number then uses the "Run FSM" action to run a "Run Potion" FSM (I'm setting it up this way because eventually I'll have lots of potion types).  The "Run Potion" FSM adds 1 to the number, and ends with a "Finish FSM" action.

The first time I use the potion, it works perfectly.  Every time after that, the number is increased by 2 instead of 1.  Could the Run FSM action be running twice?

Thank you,
Jenna
Title: Re: Run FSM problems
Post by: Lane on June 05, 2013, 01:12:13 PM
Could you post some screenshots or an example?
Title: Re: Run FSM problems
Post by: Alex Chouls on June 09, 2013, 12:29:00 PM
Indeed there is a bug - thanks for catching it!

I've attached a fixed version of Run FSM.

The fix will also be in the next release, which should be in the store next week.