TrueState 3.1


Okay. I think I've solved the issue I described in my previous post. Good news is, I was able to fix it in a way that it shouldn't affect existing projects. If you've been using TrueState 3.0 and it works well for you, then keep on keepin' on. But as soon as you run into the issue described in the previous post, there is now a new option for you.

In the updated documentation I call the two methods BASIC and FLEXIBLE. If you've been using TrueState 3.0, you've been using the BASIC pattern. If you've used previous versions of TrueState, then the FLEXIBLE pattern should already look familiar.

Check out the new example project shows both methods. The AI layer uses BASIC while the behavior layer uses FLEXIBLE. Between the example and the documentation, hopefully you can get up and running without too much issue.

One final change I made was the removal of the layer "vars" property. Turns out it really wasn't necessary. The layer itself is already a struct, so you can add any properties you want to it! If you were using _layer.vars.whatever in your project, you should be able to do a quick find and replace to remove the vars name and just stick those vars right on your _layer struct.

If you have any further questions, let me know!

Files

TrueState 3.1.yyz 408 kB
Aug 25, 2022
use_truestate.gml 4 kB
Aug 25, 2022

Get TrueState - Finite State Machine for GMS2

Download NowName your own price

Comments

Log in with itch.io to leave a comment.

(+1)

Nice!  I cannot wait to dig into this and give the 3x version a try!  Thank you so much for your continued efforts  in development and maintaining this project.  You rock!!