Hello,
Im encountering a problem which is bothering me and i cannot seem to fix it myself… tried some other ways but didnt work…
First of all, let me explain what i want it happend, and what actually happens…
Variables used:
Walkspeed = Defines the walkspeed,
MinWalkScrollSpeed = What the minimum walkspeed is with scrolling,
MaxWalkScrollSpeed = the same but it is giving the max walkspeed that can be chosen when scrolling,
What is supposed to happen?
I want the user to be able to control the Movement speed precisely due to tactical purposes.
What actually happens
The MinWalkScrollSpeed is working as intended, but the MaxWalkScrollSpeed is not setting the limit on whats the Max scrollable walkspeed… and the user has to sprint once for the Game to “refresh” it otherwise the Movement speed will stay the same as before.
Not sure if there’s a second question here. Do tell.
Was abit unclear probably, my second question was how to fix it not “refreshing” / having an instant effect on the movement speed change… also thanks, forgot about the good ol’ clamp… (for some reason its hard for me to find fixes for easy things, but easy to find fixes for hard things…)
No, after lets say i increase my speed, it doesnt instantly apply the speed change, i always need to use my sprint function for the change to be applied. (In the video the sprinting function represents the value 700)
It is pretty basic, takes the InputAction then sets the speed depending on if Pressed or released… have a stamina check aswell but unsure if it even effects it [screenshot-1]
This is the StaminaCheck, it uses DeltaSeconds to check if the Stamina == 0[staminacheck]
Im very unsure what causes this, tried deleting the entire Stamina + sprint function (since notthing has any refrence to it) and it still didnt apply the speed on scroll… im gonna sleep a night over it, i may find a fix tomorrow since im tired…