Finite State Machine - GDevelop Extension
A downloadable asset pack for Windows, macOS, and Linux
This extension adds two powerful Finite State Machine (FSM) behaviors to GDevelop. Manage the logic of individual object instances with the standard FSM Behavior, or maintain a persistent state across all your scenes with the Global FSM Behavior. Cleanly manage complex logic for AI, players, UI, and even game-wide systems without creating complicated event sheets.
Features
- Independent State Machines: Every object instance runs its own FSM, perfect for managing multiple enemies or interactive elements simultaneously.
- ✨ NEW: Global State Machine: A Finite State Machine (FSM) that maintains its state across scenes. Use it to manage persistent object states and transitions, ideal for creating game-wide managers, tracking character statuses between levels, or handling multi-scene quest logic.
- Easy Management: Set up and manage all your states directly from the behavior's properties panel.
- Sequential Transitions: Easily cycle through states with "Next state" and "Previous state" actions. Includes an optional looping feature, making it perfect for creating intuitive menus and selection screens.
- Flexible Control: Change the state at any time by referencing its name (e.g., "attack") or its index number.
Actions, Conditions & Expressions
These behaviors come with a complete set of functions to integrate into your event sheets:
- (Action) Set state by index
- (Action) Set state by name
- (Action) Next state
- (Action) Previous state
- (Condition) Is state
- (Expression) GetStateIndex
- (Expression) GetStateName
License
This extension is provided under a simple and permissive license.
You are free to:
- Use this extension in any of your projects, personal or commercial.
- Modify the source code to fit your specific needs.
- Use it without giving any credit or attribution (though a shout-out is always appreciated!).
The only restriction is:
- You are not allowed to resell, redistribute, or re-package this extension as a standalone asset.
💖 Supporter Edition 💖
Love this extension? This version is for you!
It's functionally identical to the free one, but with some fun emojis ✨ in the editor descriptions. By choosing this edition, you're supporting my work and helping me create more tools for the GDevelop community.
Thank you for your amazing support!
Download
Click download now to get access to the following files:
Development log
- Finite State Machine Update: Version 1.1.08 hours ago
Leave a comment
Log in with itch.io to leave a comment.