Removed delta because it made the enemy super slow

This commit is contained in:
Willow Behar
2024-05-10 12:35:19 -05:00
parent 18c52d0530
commit ca2ef6896d

View File

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