playMaker

Author Topic: "Set (String/Int)" works during first state iteration, no value change on repeat  (Read 1745 times)

mrpooley92

  • Playmaker Newbie
  • *
  • Posts: 2
Hey, guys. I've been using Playmaker heavily for a week and am loving it and catching on fast.

I've noticed a few times that once my FSMs finish one loop - my set int and set string actions dont seem to be changing the value anymore once the FSM starts its second iteration.

Example: I'm displaying a GUI Text. When I press P, the text changes to "2". When I press P again, it should change to "1". This would be the FSMs loop begin - as now I'm in the first state again waiting for "P" input to change the text to "2" again.

This kind of thing works - but once I'm back in the beginning of the loop after the first iteration, it won't change the text anymore during the second iteration. And yes, I'm watching the debugger, and it's still switching back and forth between states when I press P, but it's not changing the text anymore.

My hypothesis is that for some reason I can change and set variable values during the first iteration of an FSM, but once it starts a second loop the FSM is unable to change and set variable values anymore.

At least this is what appears to be happening.

I feel like this is something other people have HAD to run into - but I don't know  I couldn't find anything. Please get back to me ASAP guys! Am having so much fun and something like this is really killing my vibe.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Are you actually redefining the value in the first state? You can switch between states all you want, but it doesn't revert the values to what they were the last time you were in that state.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D