End of Support Announcement (Oct 2nd, 2023) As I've been taking a step back from Game Dev over the course of the last year, I've finally decided it's time to cease formal updates on my assets. They will now be free to use, but will receive no further features, bug fixes, or any changes at all. Enjoy them for as long as they continue to work in GM, and thanks for all the support over the years.
TrueState is a robust finite state machine to help you organize and control even the most complex of objects. From something as simple as a door that can be open and closed, to the most complex action platforming hero, anything is possible with TrueState!
Easy-ish to use Control any number of events from a single script resource Always know how long you've been in any one state Run code when a state starts or ends State history provides easy access to previous states Setup attack combos and special abilities easier than ever Plus all the benefits of using a Finite State Machine in the first place, like more organized code and easier debugging
How to use
Check out the documentation in the link below for how to get started with TrueState!
Wall tile art created by @GrogDev you are free to use in your own game!
Character art created by Rvos - https://rvros.itch.io/
Renamed many internal variables. (Don't recommend updating existing projects to 2.0) Changed state_var from an array to state_vars[?] ds map. Added two new possible state arguments (in addition to step and draw). We now have NEW and FINAL, which will run at the beginning and ending of a state respectively.
Major update to provide different ways to define states. Please read the documentation for more details.