playMaker

Author Topic: I have a qustion - Starting state with send Event[SOLVED]  (Read 1547 times)

picsel100

  • Playmaker Newbie
  • *
  • Posts: 7
I have a qustion - Starting state with send Event[SOLVED]
« on: December 26, 2013, 04:27:19 AM »
Hi everyone,
Marry cristmas! :D

I have a qustion about Unity PlayMaker.

When I push the Play button,
every state is running.


but what I want to do is that,

When I push the Play button, I want to stop A state even for the moment
and than I want to play A state from another FSM's B state by sending event.




What should I do to make it work?

Thank you
« Last Edit: December 30, 2013, 09:17:20 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: I have a qustion - Starting state with send Event
« Reply #1 on: December 26, 2013, 06:19:43 AM »
Hi,

 -- create a global event called for example " MY BUTTON PRESSED"
 -- in b state, add a "global transition" and select "MY BUTTON PRESSED"
 -- in a state, use "Send event" and broadcast "MY BUTTON PRESSED"

 I think this is what you want.

Bye,

 Jean

picsel100

  • Playmaker Newbie
  • *
  • Posts: 7
Re: I have a qustion - Starting state with send Event
« Reply #2 on: December 30, 2013, 08:16:38 AM »
oh!!! Thank You! Thank you!