playMaker

Author Topic: Possible to start transition from another FSM? [SOLVED]  (Read 661 times)

Adam Z

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Possible to start transition from another FSM? [SOLVED]
« on: October 11, 2017, 02:15:10 PM »
I have UI buttons that have a "Play Maker U Gui Component Proxy" attached. I also have an FSM on that button which gets triggered with ON CLICK.

I also have a Game Object with has an FSM on it to Enable and Disable my GUI panels.  Those are enabled/disabled within the different states. As an example; the FSM starts on the Main Menu state. When the "To Single Player" event occurs, it transitions to the Single Player state.

What I'm trying to do is have the button FSM tell the Game Object FSM to transition to a different state, using an Event?  Is that possible? 

Thanks.
« Last Edit: October 12, 2017, 02:21:45 PM by Adam Z »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14595
  • Official Playmaker Support
    • View Profile
Re: Possible to start transition from another FSM?
« Reply #1 on: October 11, 2017, 11:41:37 PM »
Hi,

 yes, you use send event and target that fsm you want to transit, the transition must be a global event however.

 bye,

 Jean

Adam Z

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: Possible to start transition from another FSM?
« Reply #2 on: October 12, 2017, 02:21:33 PM »
Perfect, thanks.