[C++] Disabling strafe and backwards movement while sprinting
Nothing special about my code, but im trying to find a way to make it so that my character can only run forward as he sprints. I've tried putting the code in my MoveRight() function in an if statement that is called when isSprinting is false but that just makes it an error. Below is my code for my sprint function, what should i add to only allow forward movement?
I figured out how to do it. My sprint functions are below
And here is my MoveForward and MoveRight functions
TO BE CLEAR. I know I shouldn't have hard coded the 0.5 in there, but that is just my temporary solution. I will most likely replace that with WalkSpeed ÷ RunSpeed.
answered Sep 23 '17 at 08:23 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here