From c6080b5666d4f961a11b2b420fecb581da69528e Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 14 Nov 2025 11:24:42 +0200 Subject: Add level system, fix coyote double jumps --- player.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player.gd') diff --git a/player.gd b/player.gd index cc2a663..defd9d8 100644 --- a/player.gd +++ b/player.gd @@ -39,6 +39,8 @@ func _physics_process(delta: float): var can_jump = coyote < coyote_max if Input.is_action_just_pressed("jump") and can_jump: velocity.y = -jump_strength + # Force coyote time to expire to forbid double jumps + coyote = coyote_max var direction: float if Input.is_action_pressed("move_left") and Input.is_action_pressed("move_right"): -- cgit v1.3