diff options
Diffstat (limited to 'player.gd')
| -rw-r--r-- | player.gd | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,3 +1,4 @@ +class_name Player extends CharacterBody2D @export var speed: float @@ -37,7 +38,7 @@ func _physics_process(delta: float): coyote += 1 var can_jump = coyote < coyote_max - if Input.is_action_just_pressed("jump") and can_jump: + if Input.is_action_pressed("jump") and can_jump: velocity.y = -jump_strength # Force coyote time to expire to forbid double jumps coyote = coyote_max |
