This commit is contained in:
zozieee committed 2026-10-16 20:26:22 -05:00
commit 08ac2fdfea
8 files changed
+107 -5

No files matched your search

+5
View File
@@ -27,6 +27,11 @@ func _process(delta: float) -> void:
#velocity.x = 0
var direction = Input.get_axis("move_left","move_right")
if direction < 0:
$Sprite2D.flip_h = true
elif direction > 0:
$Sprite2D.flip_h = false
if direction:
velocity.x = direction * SPEED
else: