Fixed player double jumps not working. and added a dash

This commit is contained in:
Hampter committed 2026-02-12 06:56:01 -05:00
1 parent 83a4a8f374
commit 5518f3ce79
12 files changed
+129 -108

No files matched your search

@@ -17,6 +17,7 @@ func on_phyisics_process(delta: float) -> void:
if direction:
player.velocity.x += direction * speed * delta
player.velocity.x = clamp(player.velocity.x, -maxSpeed, maxSpeed)
#player.velocity.x = move_toward(player.velocity.x, maxSpeed, 100 * delta)
if direction != 0:
animatedSprite2D.flip_h = false if direction > 0 else true