playMaker

Author Topic: Run FSM problems  (Read 2817 times)

JennaReanne

  • Junior Playmaker
  • **
  • Posts: 57
    • Little Worlds Interactive
Run FSM problems
« 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

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Run FSM problems
« Reply #1 on: June 05, 2013, 01:12:13 PM »
Could you post some screenshots or an example?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4145
  • Official Playmaker Support
    • LinkedIn
Re: Run FSM problems
« Reply #2 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.