Allow slugs to walk left
This commit is contained in:
parent
b30613974e
commit
78b7015eea
|
@ -107,6 +107,8 @@ func _physics_process(delta: float) -> void:
|
||||||
$AnimatedSprite.play("crawl")
|
$AnimatedSprite.play("crawl")
|
||||||
if not $SlimyWalkSfx.playing:
|
if not $SlimyWalkSfx.playing:
|
||||||
$SlimyWalkSfx.play()
|
$SlimyWalkSfx.play()
|
||||||
|
|
||||||
|
$AnimatedSprite.flip_h = _velocity.x < 0
|
||||||
else:
|
else:
|
||||||
if $AnimatedSprite.animation != "still":
|
if $AnimatedSprite.animation != "still":
|
||||||
$AnimatedSprite.play("still")
|
$AnimatedSprite.play("still")
|
||||||
|
|
Loading…
Reference in New Issue