PRState is a small but very handy extension that enables you to easily implement a finite state machine. What that means is that it will help you keep your object's states (character is idle, character is walking, character is running, etc.) neat and organized, rather than having all that code lumped together into your Step event(s).
Why execute a bunch of IF statements or a huge SWITCH statement to determine what code you need to run depending on what your character or other object is currently doing? Even if you split out your code into separate scripts, it may make your Step event cleaner looking, but it still won't be as logically organized and easy to view as using a state machine to do the job.
Let PRState do that work for you! Please see the screenshots above for a primer on its use.
Friendly support is just an email away and you can expect a quick turn-around to answer your questions and resolve issues. As always, comments and suggestions are welcome!
Version 1.0.0. Published October 31, 2018
This asset hasn't received enough reviews yet.
You can only review assets you've bought.
Need both an Email and Documentation First
I'd like to see a documentation of both PRAction and PRState or at least an instruction of all the functions and variables. I am not entirely certain how to go about switching states in this yet.
Hello and thank you for your comment! I am currently working on adding the documentation for both PRState and PRAction to my website (www.prismaticrealms.com). I apologize for the inconvenience as it is taking longer than I thought to get it done. Some good news: I have uploaded a preliminary How To document to my website for PRState. It should get you on your way until the rest of the site is up, which will be very soon. Please feel free to contact me on the YoYo Games forums, on Twitter or LinkedIn or through YouTube. Thank you for your support!
Edit: All documentation for PRState and PRAction are now available at www.prismaticrealms.com