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()