From b504a90189a1f36e297aca59686a5f9a7c5efa05 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Thu, 6 Mar 2025 19:00:57 -0500 Subject: [PATCH] Minor renaming --- scenes/player/player.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scenes/player/player.gd b/scenes/player/player.gd index b9dfd94..f97c285 100644 --- a/scenes/player/player.gd +++ b/scenes/player/player.gd @@ -27,8 +27,8 @@ func _physics_process(delta: float) -> void: is_crouching = Input.is_action_pressed("crouch") apply_gravity(delta) - handle_jump() - handle_running() + handle_jumping() + set_is_running() handle_movement() handle_crouching(delta) @@ -60,7 +60,7 @@ func handle_crouching(delta: float) -> void: else: pass # Continue crouching until nothing overhead -func handle_jump() -> void: +func handle_jumping() -> void: if not Input.is_action_just_pressed("jump"): return if not is_on_floor(): return velocity.y = jump_velocity @@ -87,7 +87,7 @@ func handle_movement() -> void: ## Running is disabled when:[br] ## 1. The `run` input is pressed (ie toggled)[br] ## 2. Is no longer moving -func handle_running() -> void: +func set_is_running() -> void: if Input.is_action_just_pressed("run") and not is_running: is_running = true elif Input.is_action_just_pressed("run") and is_running: