Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jaya on November 11, 2012, 05:42:18 AM

Title: Testing PlayMaker individual state
Post by: jaya on November 11, 2012, 05:42:18 AM
Hi All,

I am new to PlayMaker although I have purchase the product for some times ... just start using it to enhance the gameplay of my game project.

I have difficulties to test/run individual states ... the tutorial did mention on pressing Option/Alt key and press left mouse button ... its just not working for me. I am using MAC OSX 10.7.5 on IMAC hardware with wireless keyboard and mouse.

Thank you everyone for helping.

Best regards,
Jaya
Title: Re: Testing PlayMaker individual state
Post by: jeanfabre on November 12, 2012, 07:36:26 AM
Hi,

 You need a global transition state for this to work. It doesn't work ( from what I experience) on state without a global transition.

bye,

 Jean
Title: Re: Testing PlayMaker individual state
Post by: Alex Chouls on November 13, 2012, 12:28:34 AM
There has to be a transition from the *active* state to the state you're alt-clicking on. Alt-clicking just sends the event that triggers that transition.

You can also alt-click on any event listed in the active state to send it.
Title: Re: Testing PlayMaker individual state
Post by: Alex Chouls on November 13, 2012, 12:34:21 AM
You can also set a state to be the Start State temporarily to quickly test it...
Title: Re: Testing PlayMaker individual state
Post by: jaya on November 14, 2012, 10:20:21 AM
Hi All,

Still trying all of your advise ... Global Trans etc ... still cannot do Option-Alt+Left mouse click ...

Appreciate the help very much. Thank you.

Best regards,
Jaya
Title: Re: Testing PlayMaker individual state
Post by: DARK_ETERNAL on November 14, 2012, 10:48:35 AM
You can't test a global transition with the Opt/Alt + Click trick, as far as I know. You can have a state broadcasting that event for the global transition.

As Chouls says, if you have an FSM with 2 states, namely State1 and State2, and if you want to Alt + Click to pass from State1 to State2, a transition (let's call ToState2Ev) HAS to exist from State1 to State2, as well as a ToState1Ev should exist, if you want to test the transition backwards. Remember that click is to be done on the state, not the transition.

Check this screenshot I attached.