Godot Version
4.3
Hi!
I am using state machine for my player states, also substates for those states. And as for now it works like a charm!.
I now wanted to use it for my weapon rig. I know later I will use state machine for enemies and probably meta game states itself.
all states extends state.gd node
class_name State
extends Node
signal transition(_new_state_name: StringName)
func enter() -> void:
pass
func exit() -> void:
pass
func update(_delta: float) -> void:
pass
func update_physics(_delta: float) -> void:
pass
I start to worry that there will be moment where this might start causing some unexpected error when few states will change at once. Is there a reason I should be worried?
Should I create another state.gd for enemies and / or weapons so that those don’t collide with each other?
thank you!