From 8ed5cccabb22435d143f2e8baca3c15b59244ba3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 15 Apr 2024 21:27:23 +0200 Subject: [PATCH] Don't make sprites implode while being dragged --- behaviours/sprite_left_right.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behaviours/sprite_left_right.gd b/behaviours/sprite_left_right.gd index d0fd4d1..74287ca 100644 --- a/behaviours/sprite_left_right.gd +++ b/behaviours/sprite_left_right.gd @@ -9,5 +9,5 @@ class_name SpriteLeftRight func handle_move(movement: Vector2): if movement.x > 0: texture = right_texture - else: + elif movement.x < 0: texture = left_texture