From 05bd11ae6aa41679027a6d5b6842941e1b7faf08 Mon Sep 17 00:00:00 2001 From: Victor Turgeon Date: Wed, 12 Oct 2022 22:54:52 -0400 Subject: [PATCH] Fix bug crouch speed --- Player.gd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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