From ca2ef6896d48a624a7499769ed908457ba809881 Mon Sep 17 00:00:00 2001 From: Willow Behar <2364126-TechRunner@users.noreply.gitlab.com> Date: Fri, 10 May 2024 12:35:19 -0500 Subject: [PATCH] Removed delta because it made the enemy super slow --- Assets/scripts/Enemy.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/scripts/Enemy.gd b/Assets/scripts/Enemy.gd index bd4fc0a..1148e09 100644 --- a/Assets/scripts/Enemy.gd +++ b/Assets/scripts/Enemy.gd @@ -17,7 +17,7 @@ func _process(delta): func _physics_process(delta): var current_location = global_transform.origin var next_location = nav_agent.get_next_path_position() - var new_velocity = (next_location - current_location).normalized() * SPEED * delta + var new_velocity = (next_location - current_location).normalized() * SPEED velocity = new_velocity move_and_slide()