Merge branch 'main' of https://git.nanoyagi.com/NanoYagi/JumpRopeOldTech
This commit is contained in:
commit
08ac2fdfea
8 files changed
+107
-5
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user