- Home /
Question by
oxtaridigriam · Aug 03, 2020 at 11:25 AM ·
sprinting
Adding a sprint button
Hey, I've been trying to add a sprinting feature to my game. But it doesn't seem to work. Heres the most important code (I am using other code but we don't need to talk about that) public float speed = 3f; void Update() { if (Input.GetKey(KeyCode.LeftShift)) { speed = 5f; } }
Comment
Your answer

Follow this Question
Related Questions
Please help FPS Sprint Script 2 Answers
Character moves when holding shift 1 Answer
footstep sound effects sprinting fix 1 Answer
Sprint position for gun 1 Answer