Here is the simplest state machine I've made with structs in GameMaker. I've found it to be useful in small projects and expandable when I need something more complex.
Link to State Machine Code
https://pastebin.com/BAzvJ6vB
Patreon Support
/ samspadegamedev
#Shorts
#GameMaker
#StateMachines