fixed attack in state machine

This commit is contained in:
Derek
2025-04-21 22:58:54 -05:00
parent 18398e8d4e
commit 362b0a5708
8 changed files with 54 additions and 14 deletions

View File

@@ -23,7 +23,7 @@ var last_enemy : bool = false
@export_group("Taunts")
@export var taunts : Array[String] = []
@onready var state_machine: Node = $StateMachine
@onready var level_control = get_tree().current_scene
@onready var movement_shape = $MovementShape
@onready var barrel_1 = $TurretLook/Turret/Barrel1
@@ -136,6 +136,8 @@ func spawn_casing():
instance_casing.player_velocity = velocity * transform.basis
get_tree().get_root().add_child(instance_casing)
func stun():
state_machine.on_child_transition(state_machine.current_state,"stunned")
func save():
var save_dict = {