How can i stop character from accelarating while sliding?

hi, i made a state where my character is sliding, but i notice if he keeps sliding his speed will never stop increasing. is there a way i can fix this? (i also noticed the same seems to happen while character is falling)

for clarity here is how i am setting this up - i even tried increasing the friction but didnt change anything

Hey there @fabiomsilva!

Considering you said it’s working and the player is sliding, I’m assuming you setting the walkable angle there basically makes it impossible for the player to get their footing. So friction doesn’t apply because the surface is not walkable. This type of sliding is best used if you are trying to make sure the player just falls down a steep side wall, like in Mario64.

If you were to try and use this slide as anything else you’re going to lack control over it. If you want to clamp the velocity and that’s all, this example will do just fine.

I advise only clamping the velocity while sliding. Or if you’re prefer to just dampen it you could use linear dampening but that will change how your actor moves in total until set back.

2 Likes

thank you. yes im getting some issues, seems like the character is being considered to be in air all the time. what would you suggest to get a better slide with more control? (i need something similar to the one in uncharted 4, that he keeps sliding downhill , but still retains movement control of left and right and jumping)

I think that if you want solid control over the movement while still forcing the sliding behavior, you’re likely going to have to make a custom movement type. I have a video here that can help you get the sliding behavior down, and the states for it. However you will have to add to it once it’s done to be able to have more side control going down hills.

So for all external links we have to pop this disclaimer, it sounds scary but is just to say that anything that happens elsewhere is out of our control.

Disclaimer: This Youtube link and creator are not affiliated with Epic Games, and any result of actions taken past this point are not under Epic Games’ liability.

Legal out of the way, once you’re done following this you’ll have to add to his set up.

Let me know if you have any questions!

1 Like

thank you! ive frankensteined portions of the tutorial and it seems to work with my als v4 setup. now he slides down, not to infinite speed and i can still jump. awesome!
now i need to find the proper rotation of the character :smile:

Oh yeah, ALS. I need to sit down and try out the system myself, we get a good amount of questions about it or using it and not all standard unreal answers work for ALS especially rotation specific stuff. I’m going to be spending my weekend working on an ALS/Replication sandbox so I can better answer questions involving Multiplayer ALS stuff.

ALS rotations aren’t handled in the same way, and the animation rotations are handled with modify curve.

This guy looks into how ALS works in some instances and shows things off that might be of use to you in the future.

Disclaimer: This Youtube link and creator are not affiliated with Epic Games, and any result of actions taken past this point are not under Epic Games’ liability.