Animation PROBLEM

I am trying to create an endless runner. Im trying to add a feature where my character can roll under something. However, when the animation plays the the player ends up slowing down. How can I fix this? I increased the rate scale of the roll animation which makes the character go faster but it ends up freezing at the end.

Code for increasing speed

Which button are you using to crouch/roll? The default 2D sidescroller does have a button mapping for crouching. However, it also halves your default max. speed for the duration of the crouch. In the character movement setting there should be the option of “max speed while crouching”.

1 Like