From 9c9a3ecc26b0d1b9ec4be7540b5810be792d66a8 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 25 Feb 2024 15:27:59 +0000 Subject: [PATCH] Allow jumping from idle --- content/scripts/player.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/scripts/player.gd b/content/scripts/player.gd index 27640de..3fa7ff1 100644 --- a/content/scripts/player.gd +++ b/content/scripts/player.gd @@ -476,6 +476,8 @@ func _on_idle_state_processing(_delta: float) -> void: state_chart.send_event("Move") if Input.is_action_just_pressed("cc_sprint"): state_chart.send_event("Crouch") + if Input.is_action_just_pressed("cc_jump"): + state_chart.send_event("Jump") func _on_moving_state_processing(_delta: float) -> void: