Dodge animations not working correctly

My character’s left, right, forward, and back animations work perfectly but when i try to do diagonal dodge animations, nothing happens. Additionally, just tilting the left thumbstick in any of the directions wont do any animation. Any way i can work around or fix this?

(Im using controller inputs for my project)

If you go diagonally, I guess you’ll reach 0.5 forward and 0.5 right, so none of your conditions will be triggered.

There’s a node “get last input vector” that you get from player controller and you can use with “launch character” node. Doing that, you won’t need all those branches.

Get last input vector, get vector times float, set float as 100, and connect to launch character, assuming your animations are not root motion enabled. You’ll need a special code to trigger the proper dodge animation depending on the input vector direction.

im assuming its suppose to look like this on both x and y axis inputs?

Great! Something like that. You still need the booleans and the node “play montage” for each direction.

Also, you aren’t connecting ,“add movement input” on those input axis. Is that a reason for that?

Ok i got this and it works but not my main character has like a light stutter when moving in any direction.

The stuttering happens because you are constantly calling launch character. Ideally, dodge animation montages should be called with an additional input action besides the forwards/right axis input.

You want to dodge (montage + launch character) or strafe ( walk sideways)?

1 Like

Ok i think i understand. I took the launch character and the connections and placed it into the dodge animation macro instead of the BP event graph and it seems to be working correctly.

image

3 Likes

Great. Keep up the good work.

3 Likes

thank you for the help!

2 Likes

Your welcome. Don’t forget to showcase your work in progress in the section “What are you working on?”

Following

where would that be located?

You can add a showcase to your profile or create a discussion with tags: community, showcase, game development, work in progress, UE5-0