Download

Walk speed not insync with animation play rate

Hey guys. So, I’ve been messing around with Wwise and creating footsteps, and testing them in Unreal with the Third Person Template. Everything works, but there is this problem, where I set the max walk speed to 93.75 (the same as in blendspace node for walking), and when I test it out, it looks like the character is doing a forward moonwalk; like the animation play rate is not right. How can I fix this, so the animation play rate is in sync with the walking speed. I remember reading it somewhere on this site, that I need to make a custom function that will calculate the play rate from speed, and then call this function in the animation graph of the Idle/Run state, and connection it to the play rate of the blendspace. Well, I don’t know how to do that, so if someone would help, that would be great. Cheers!

Hi Reeson46, this should be a fairly easy fix for you, all you need to do to change the actual animation speed is find the blendspace that has the idle to walk animations inside. On the left side you’ll see play-rate speed (I’m pretty sure it’s called that from memory) and you can adjust that to match the walking speed.
I hope that helps!

True, that would be one solution. I would have to play around with the animation play rate, but in this post How to alter the animation rate of a given animation? - UE4 AnswerHub this guy explaines, that you need a cutsom function that will calculate the play rate from speed.

Yes you can always calculate the speed based off the amount on the joystick, which will land between 0-1, if you’re using a keyboard it will act like a boolean and flip between 0 & 1. Lots of different ways to get the result you’re after. If you try making a function and see how it goes, we can help more with your screenshot :slight_smile:

That’s the problem, I don’t know how to make this custom function.