fixed bug where animation function wouldn't animate properly

This commit is contained in:
2026-02-27 17:13:20 +01:00
parent 602e5595ca
commit 0a474dde90
13 changed files with 144 additions and 105 deletions

View File

@@ -9,6 +9,7 @@ class_name Drone
var dodge_duration_timer : Timer
func _ready() -> void:
_animate(self.get_child(4,false),"walking")
add_on_slots = 1
for a in self.get_children() :
if a.name == "DodgeDurationTimer" :
@@ -19,6 +20,7 @@ func _ready() -> void:
func class_ability() -> float:
#do dash
animation_state_machine = MachineGlobals.regular_states.DASHING
return dodge_cd
func listen_to_animation_signals(next_anim_state : MachineGlobals.regular_states) -> void: