more ai work

This commit is contained in:
derek
2025-05-02 16:58:01 -05:00
parent 88a60d469e
commit 68facaf544
9 changed files with 38 additions and 54 deletions

View File

@@ -101,8 +101,11 @@ func _ready():
func _process(delta):
line_of_sight.global_position = global_position
move_and_slide()
look_at_player()
if !is_on_floor():
velocity -= Vector3(0,9.8,0) * delta
look_at_player()
func stun():
change_state_to("stunned")