playMaker

Author Topic: Neatly combine 'Transition Events' lines together  (Read 1546 times)

fromfame

  • Junior Playmaker
  • **
  • Posts: 78
  • Sloppy PM Veteran
Neatly combine 'Transition Events' lines together
« on: January 30, 2019, 06:58:40 AM »
Often transition events make the canvas look very messy which can easily overwhelm/irritate devs trying to learn your code.

Sometimes I try to align the states like below on the out events
https://imgur.com/a/JntPlgz

It would be great if there was a way to collect all that clutter into one single line when required.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Neatly combine 'Transition Events' lines together
« Reply #1 on: February 06, 2019, 02:07:29 AM »
Hi,

 you can send a local event that you would call a local event "NEXT" and so you don't need to hard wire, you just need to add "NEXT" as a global transition of the state "next".

does that make sense?

 else, really, this call for a template, where you would have an fsm for each case Primiary, Secondary, Tertiary. This is the most elegant way, as currently your fsm haas the potential to grow if you need more, yet it will become very cluttered indeed, if you make one fsm dealing with one type in a flexible way ( where you define the type via variables you exposed to the inspector, you can then have as much as you need and it will grow nicely and look good.

 Bye,

 Jean