adjust height of player
This commit is contained in:
parent
59f7b7f863
commit
450b067b8d
7 changed files with 20 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue