Skip to content

Instantly share code, notes, and snippets.

View gibionmillak's full-sized avatar
😁

GibionMillak gibionmillak

😁
View GitHub Profile
@RainCatalyst
RainCatalyst / game.gd
Last active August 31, 2022 17:52
Simple state machine in Godot
## State machine usage example
## Add states as children to the States node
extends Node
# Setup fsm
onready var fsm = StateMachine.new(self, $States, $States/menu, true)
func _process(delta):
# Update fsm
fsm.process(delta)