diff --git a/Player.gd b/Player.gd index 5c3c939..91011ba 100644 --- a/Player.gd +++ b/Player.gd @@ -83,10 +83,12 @@ func _physics_process(delta): if Input.is_action_just_pressed("crouch"): head.translate(Vector3.DOWN) - speed = 20 + speed = 10 if Input.is_action_just_released("crouch"): head.translate(Vector3.UP) - speed = 40 + speed = 20 + + if Input.is_action_pressed("move_forward"): direction -= transform.basis.z