From b262d5d194036571d0b3adad3c9914ba9dbe0c8b Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Mon, 23 Sep 2024 19:24:56 +0100 Subject: enemy: Add line of sight to AI to look for player --- scripts/dungeon_manager.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/dungeon_manager.gd') diff --git a/scripts/dungeon_manager.gd b/scripts/dungeon_manager.gd index 513fcd6..ec3f5d4 100644 --- a/scripts/dungeon_manager.gd +++ b/scripts/dungeon_manager.gd @@ -15,7 +15,9 @@ func create_enemies() -> void: for i in range(num_enemies): var enemy = enemy_inst.instantiate() - enemy.target = $Player + + # Target is controlled through enemy wander AI + enemy.target = null var found_pos = false while not found_pos: -- cgit