Hello Everyone,
I have been trying to solve this issue for a while now and I cannot figure out how to do it.
I am trying to implement a walk speed and a run speed. I have been doing this by simply dividing deltaX by 2 when the designated run button is not being pressed.
HOWEVER
The player can freely switch between these two (half speed range & full speed range) while they are jumping creating some very wild jump arches. I want for people to still be able to redirect themselves mid-jump but not suddenly accelerate above the speed at which they started the jump from.
Right now I can make it so the jump arch is completely set from the moment the player stops touching the ground, but like I just mentioned, I want them to still be able to redirect the jump, just not accelerate more (if they started the jump while in walk speed then pressed the jump button mid-jump) or suddenly decelerate (if they started the jump at running speed and then released the run button mid jump).
Any help would be appreciated!! Thank you in advance!