#Woul you rather ... ? State Machine edition

1 messages · Page 1 of 1 (latest)

primal plover
#

Would you rather design your state machine using the node hierarchy and callbacks, or instantiate raw class of state with enter(), update(), exit() ?

If you prefer the node one, would you rather queue_free/instantiate the active state, or have all state in the tree and playing with set_process(true/false) ?

Best regards,
Me

kindred oak
#

Currently my state machines look like this

#

and the StateMachine updates the current state.

#

But I am considering changing the states to Resources listed in a dictionary or array