playMaker

Author Topic: FSM State Switch: how does it work?[SOLVED]  (Read 3977 times)

kurai

  • Playmaker Newbie
  • *
  • Posts: 9
FSM State Switch: how does it work?[SOLVED]
« on: August 24, 2013, 11:33:22 AM »
I understand this function switches to another state when an FSM gets to a certain state. Is this correct? Because I can't make it work.
I have an FSM and then another one, on another game object.
I want to make it so that when the game object goes in Idle state, the first object switches to a new state. Attached are some screenshots of the two FSM. Maybe I haven't understood how the FSM State Switch works, can you clarify it to me? Thanks!
« Last Edit: September 10, 2013, 02:14:18 AM by jeanfabre »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: FSM State Switch: how does it work?
« Reply #1 on: August 24, 2013, 11:41:42 AM »
Hi, is the monster definitely in the Idle state when the State Switch runs?

I notice a CANMOVE event being sent to all FSMs on a GameObject. Could that be changing the Monster state?

kurai

  • Playmaker Newbie
  • *
  • Posts: 9
Re: FSM State Switch: how does it work?
« Reply #2 on: August 24, 2013, 01:12:01 PM »
Hi, is the monster definitely in the Idle state when the State Switch runs?

I notice a CANMOVE event being sent to all FSMs on a GameObject. Could that be changing the Monster state?

Yes, the monster goes in Idle after being in Move state for 10 seconds. The manager first puts the monster in move state, then should wait until it's back in idle state and switch to next.

Turns out the problem was I had to check the every frame option, since it has to wait :)