Godot Marketplace is shutting down

After careful consideration, We will permanently close the Godot Marketplace on 30 October 2026. New registrations are already disabled.

  • Customers: You can still purchase until 14 August 2026. After that, you can still download your purchased assets until the closure date. Please save anything you want to keep before 30 October 2026.
  • Providers: Please request payout of your balance by 30 September 2026 so we can process it before the marketplace closes.

Questions? Contact us at info@godotmarketplace.com.

eco-state-machine

Add to wishlistAdded to wishlistRemoved from wishlist 3
Add to compare
@ Godot Asset Library Ask owner

Finite state machine script that supports timers, condition evaluation and imbricated statements.

Submitted by user Gokudomatic;
MIT;
2017-09-13

Free!

SKU: GDAL45 Categories: , , ,

Finite state machine script that supports timers, condition evaluation and imbricated statements.

This script has no depency and should be compatible with any Godot version.

Installation:
Copy the fsm.gd script file in your project.

Usage:
You don’t need to change your existing code. Simply add this code where you need the machine :
onready var my_fsm=preload(“fsm.gd”).new()

my_fsm.add_state(“state1”)
my_fsm.add_state(“whatever state”)
my_fsm.add_link(“state1″,”whatever state”,”condition”,[self,”my_condition1″,”expected value to switch”])
my_fsm.set_state(“state1”)

func my_condition1():
return some_value

Then in a loop, like _process(delta), call :
my_fsm.process(delta)

To catch the signal when the current state changes:
my_fsm.connect(“state_changed”,self,”on_state_changed”)

More documentation and examples on the Github page.

Specification: eco-state-machine

Version

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Added to wishlistRemoved from wishlist 1
Add to compare
VOID

VOID

Sold by Official Godot Asset Library
Added to wishlistRemoved from wishlist 1
Add to compare
Arabic Support

Arabic Support

Sold by Official Godot Asset Library
Added to wishlistRemoved from wishlist 5
Add to compare
Pigmint Controls

Pigmint Controls

Sold by Official Godot Asset Library
Added to wishlistRemoved from wishlist 1
Add to compare
PBR Material Fabric17

PBR Material Fabric17

Sold by Official Godot Asset Library
Added to wishlistRemoved from wishlist 1
Add to compare
PBR Material Gravel04

PBR Material Gravel04

Sold by Official Godot Asset Library
Added to wishlistRemoved from wishlist 1
Add to compare
Trackball Camera

Trackball Camera

Sold by Official Godot Asset Library

10% OF REVENUE IS DONATED TO GODOT

Godot Assets Marketplace
Logo
Compare items
  • Total (0)
Compare
Shopping cart