make still moving enemies not vibrate

This commit is contained in:
Haze Weathers 2023-03-21 17:19:00 -04:00
parent 7c124cad5e
commit 90cc0f0550

View file

@ -18,7 +18,9 @@ func _ready():
right_down_boundary *= 8
func _physics_process(delta):
if move_direction == 0:
if right_down_boundary == 0 and left_up_boundary == 0:
return
elif move_direction == 0:
move_side_to_side(delta)
else: move_up_and_down(delta)