playMaker

Author Topic: Change state of another fsm  (Read 1681 times)

Uroboros

  • Playmaker Newbie
  • *
  • Posts: 1
Change state of another fsm
« on: November 12, 2014, 06:10:39 AM »
Hi, i was having some difficulty understanding how to change the state of an FSM attached to another game object.

I have a Leaderboards panel and Settings panel
And id like to create a see-saw effect where if the button to open one panel is clicked it will change the state of the other panel to close (if it is open it will close, if it is closed it will do nothing)

I got this desired functionality somewhat working with the send event action but broadcasting click events on both FSMs will make them both open simultenously.

Any suggestions?

Thank you!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Change state of another fsm
« Reply #1 on: November 27, 2014, 01:11:11 AM »
Hi,

 use the Go to State By Name action.

 you can use the Ecosystem to get it direct in Unity.

 Bye

 Jean