playMaker

Author Topic: Transition issue - Is this a bug? (SOLVED)  (Read 2030 times)

snortch

  • Playmaker Newbie
  • *
  • Posts: 31
Transition issue - Is this a bug? (SOLVED)
« on: August 05, 2014, 06:17:23 PM »
I keep running into an issue when setting up a state that has two transitions:

I have two separate Trigger Events - one in the first transition and the other in the 2nd transition. I setup the Collide Tag in the first one. I then goto the second trigger event thats in the second transition and the things I setup in the first Trigger Event are appearing in the second one. Is this how Playmaker is supposed to work.

This video probably explains it better:
http://www.screencast.com/t/Zb4Y00XOG

highly likely that I'm just not understanding some fundamental aspect of Playmaker.
« Last Edit: August 05, 2014, 08:10:35 PM by snortch »

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Transition issue - Is this a bug?
« Reply #1 on: August 05, 2014, 06:55:54 PM »
Having the video helps heaps!

Each transition does not have it's own actions, the one state is a container for all actions in that state. So in your case you would need two actions in that one state, one for each transition (with the settings you were trying to apply).
« Last Edit: August 05, 2014, 06:57:54 PM by LampRabbit »

snortch

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Transition issue - Is this a bug?
« Reply #2 on: August 05, 2014, 08:10:11 PM »
Ohhhh - I see now. Thank you for patiently answering my question.

So Actions are added to States, not Events. And a State can have more than one Action. Dependent on the Action, I could send an event that causes the transition to fire to one of my two States.

I see that I was thinking about it somewhat backward.

Thanks for switching on the lightbulb :)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Transition issue - Is this a bug? (SOLVED)
« Reply #3 on: August 05, 2014, 08:36:53 PM »
Exactly! I can see how you could easily think how you were, mecanim sort works more like that.