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!

End User Licence Agreement (EULA).

Changes in 1.0.2

-Added PRStateSetPrev function.

Version 1.0.2. Published December 14, 2018

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Ndubisi A 04 November 2018

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.

This review was left for a previous version of this asset.


Prismatic Realms, Inc. (Publisher) 12 November 2018

Hello and thank you for your comment! I am currently working on adding the documentation for both PRState and PRAction to my website ( 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

Package contents

Loading, please wait

What is the issue?

Back to Top