make still moving enemies not vibrate
This commit is contained in:
parent
7c124cad5e
commit
90cc0f0550
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue