Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | DarlesLSF |
Hello, I was wondering here how to create a state machine for a turn based rpg.
First I thought to create 2 Enums:
enum states {IDLE, WALK, JUMP, FALL}
enum battle {IDLE, LOW_LIFE, ATTACKING, MAGIC, ITEM, ESCAPE}
But I never made any game like that on godot. Someone can illuminate me and guide me is this is the right way?
https://docs.godotengine.org/en/stable/tutorials/misc/state_design_pattern.html
rakkarage | 2020-09-25 12:52