From 78b7015eea1abb30f31ea834f786c5221df74c36 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 9 Jan 2023 05:07:08 +0000 Subject: [PATCH] Allow slugs to walk left --- characters/pests/Slug.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/characters/pests/Slug.gd b/characters/pests/Slug.gd index 90df861..9e1b3d6 100644 --- a/characters/pests/Slug.gd +++ b/characters/pests/Slug.gd @@ -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")