playMaker

Author Topic: Random idea to reduce statemachine sizes and confusion  (Read 4502 times)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Random idea to reduce statemachine sizes and confusion
« on: June 19, 2013, 05:04:25 AM »
One issue I've found is that states can get a lot of actions within them and can get rather confusing, to combat this you make heaps of states with fewer actions but this just makes the scene graph view complex (I'm talking complex state machines)

See image ... It's just an idea I'm throwing out there :P
« Last Edit: June 19, 2013, 05:09:42 AM by LampRabbit »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Random idea to reduce statemachine sizes and confusion
« Reply #1 on: June 19, 2013, 06:13:33 AM »
Hi,

 uhm, interesting, I kind of picture a way to drag a state over the finish transition to simply snap and replace it. Why not!

I do have a lot of these cascading states because obviously the offer more flexibility and readability. I don't think we loose any readability the way you laid it out.

but really, this calls for the ability to group too... :)

bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Random idea to reduce statemachine sizes and confusion
« Reply #2 on: June 19, 2013, 06:47:34 AM »
Snapping or connecting states sounds pretty cool, would make it easy to break the state up if there is an issue.

Sure, my example is extremely simple, but when you have 100+ states in a FSM it can get a bit messy.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Random idea to reduce statemachine sizes and confusion
« Reply #3 on: June 19, 2013, 08:23:22 AM »
this reminds me of the grouping stuff we've talked about a few times here.

I like the snapping idea, snap in connected states and get a connection inside the box or something to keep it cleaner. Could be disabled in options?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Random idea to reduce statemachine sizes and confusion
« Reply #4 on: June 19, 2013, 07:12:23 PM »
Yeh, I remember seeing a thread but after searching for 10 mins just decided to bring it up again as it would help a lot.

For me either this or coloring actions would be an amazing addition to playmaker but its good to hear what others think.

FritsLyn

  • Full Member
  • ***
  • Posts: 191
Re: Random idea to reduce statemachine sizes and confusion
« Reply #5 on: July 20, 2013, 03:06:33 PM »
+1 for the idea and visual, LampRabbit!

I tend to make states very long not to lose overview with a heap of "Finished" - what you suggest is really nice!