Allow slugs to walk left

This commit is contained in:
Olivier 'reivilibre' 2023-01-09 05:07:08 +00:00
parent b30613974e
commit 78b7015eea
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,8 @@ func _physics_process(delta: float) -> void:
$AnimatedSprite.play("crawl")
if not $SlimyWalkSfx.playing:
$SlimyWalkSfx.play()
$AnimatedSprite.flip_h = _velocity.x < 0
else:
if $AnimatedSprite.animation != "still":
$AnimatedSprite.play("still")