adjust height of player

This commit is contained in:
KawaiiZenbo 2025-10-25 19:33:01 -07:00
parent 59f7b7f863
commit 450b067b8d
7 changed files with 20 additions and 28 deletions

View file

@ -133,8 +133,8 @@ func _physics_process(delta: float) -> void:
jump_height = JUMP_HEIGHT_CROUCHED
crouched = true
elif Input.is_action_just_released(&"freeroam_crouch"):
$CShape.shape.height = 1.8
$Camera.position.y = 1.7
$CShape.shape.height = 1.6
$Camera.position.y = 1.5
if (running):
speed = SPEED_RUNNING
jump_height = JUMP_HEIGHT_RUNNING