Changed player jump to jump action instead of ui_accept

This commit is contained in:
2024-08-09 16:44:07 -05:00
parent 195c1b206a
commit c02de730b3

View File

@ -33,7 +33,7 @@ func _physics_process(delta):
velocity.y -= gravity * delta
# Handle jump.
if Input.is_action_just_pressed("ui_accept") and is_on_floor() and current_condition != CONDITION.COUGHING and current_condition != CONDITION.SEVERE_COUGHING:
if Input.is_action_just_pressed("jump") and is_on_floor() and current_condition != CONDITION.COUGHING and current_condition != CONDITION.SEVERE_COUGHING:
velocity.y = JUMP_VELOCITY
# Get the input direction and handle the movement/deceleration.