playMaker

Author Topic: Testing PlayMaker individual state  (Read 3012 times)

jaya

  • Playmaker Newbie
  • *
  • Posts: 2
Testing PlayMaker individual state
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Testing PlayMaker individual state
« Reply #1 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

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Testing PlayMaker individual state
« Reply #2 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.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Testing PlayMaker individual state
« Reply #3 on: November 13, 2012, 12:34:21 AM »
You can also set a state to be the Start State temporarily to quickly test it...

jaya

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Testing PlayMaker individual state
« Reply #4 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

DARK_ETERNAL

  • Full Member
  • ***
  • Posts: 110
Re: Testing PlayMaker individual state
« Reply #5 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.

Check out our new game: Nitro Chimp. Now live in App Store!

Trailer:
Download: https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8