fix: correct axis direction, air accel, and jump/dash input handling

This commit is contained in:
2026-06-03 17:35:28 -04:00
parent 365264e819
commit dc2cb8ca26
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -50,11 +50,11 @@ func _process(_delta: float) -> void:
var sm := _ensure_machine()
if not sm:
return
sm.input_jump_just_pressed = Input.is_action_just_pressed("jump") and not sm.input_jump_pressed
sm.input_jump_just_pressed = Input.is_action_just_pressed("jump")
sm.input_jump_pressed = Input.is_action_pressed("jump")
sm.input_sprint = Input.is_action_pressed("sprint")
sm.input_crouch = Input.is_action_pressed("crouch")
sm.input_dash = Input.is_action_just_pressed("dash") and not sm.input_dash
sm.input_dash = Input.is_action_just_pressed("dash")
sm.input_dir = Input.get_vector("move_left", "move_right", "move_forward", "move_back")
# DEBUG: emit every frame so we can see whether inputs reach the controller.