From e1e8eb102e7f2c64aeda24fecef1f09622f2bd59 Mon Sep 17 00:00:00 2001 From: Harmony Honey Date: Fri, 8 Oct 2021 16:45:47 -0400 Subject: [PATCH] jump fix(: --- src/actor/Player.gd | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/actor/Player.gd b/src/actor/Player.gd index 12b7534..0649550 100644 --- a/src/actor/Player.gd +++ b/src/actor/Player.gd @@ -96,6 +96,8 @@ func _physics_process(delta): if test_move(transform, rot(Vector2(0, -1))): jump_clock = 0 + else: + jump_clock = 0 # hit box if btn.p("action"): @@ -109,9 +111,6 @@ func _physics_process(delta): move_velocity = move_and_slide(rot(velocity)) velocity = rot(move_velocity, true) - - - # camera camera.position = position @@ -124,8 +123,6 @@ func _physics_process(delta): label.text = "" for i in readout: label.text += str(i) + "\n" - - func _on_PushArea_body_entered(body): if is_floor and body is Box: