starting work on enemy hearing

This commit is contained in:
derek
2025-04-29 11:46:55 -05:00
parent a287710a7b
commit 6124a370b4
8 changed files with 31 additions and 2 deletions

View File

@@ -10,6 +10,10 @@ func Enter():
search_point()
search_timer = SEARCH_TIME_MAX
func Exit():
enemy.player_last_seen = null
enemy.points_of_interest = []
func Update(delta: float):
super(delta)
@@ -19,6 +23,7 @@ func Update(delta: float):
Transitioned.emit(self,"idle")
attack_on_sight()
search_for_suspicious_sounds()
search_point()
if enemy.global_position.distance_to(move_target_adj()) < 1: