# How do I make my character walk backwards?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-my-character-walk-backwards/357033>\
**Category:** Character & Animation\
**Tags:** fighting-game, unreal-engine, editor, UE4, question, Blueprint\
**Created:** [May 10, 2016, 7:52pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-character-walk-backwards/357033 "2016-05-10T19:52:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e4411ba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e4411ba](https://forums.unrealengine.com/u/anonymous_user_7e4411ba)\
**Post date:** [May 10, 2016, 7:52pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-character-walk-backwards/357033/1 "2016-05-10T19:52:36Z")

</div>

Hello community,

I’ve been searching on the web for a while, even going through forums to see if I can find the answer to my question, but I’ve had no such luck. So Basically this is my problem:

I’m making a 2.5D fighting game using my own assets and I have it so that the camera works perfectly the way I want it, my jump works and my characters flip depending on which side they are. But when I walk backwards away from the opponent character it still only plays the forward walk animation. I even have a blend with the backwards walk playing at a negative value. The thing is, the Velocity vector is always positive no matter what direction I’m moving in. I was wondering if it’s possible to get the Velocity depending on the Pawns direction so that moving backwards would give it a negative value and if so, how to do it. I started by using the 2D Platformer template if that helps you understand my situation.

I thank anyone for the help in advance.

---

<div class="post-metadata">

**Author:** ![mdonge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdonge](https://forums.unrealengine.com/u/mdonge)\
**Post date:** [May 10, 2016, 8:31pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-character-walk-backwards/357033/2 "2016-05-10T20:31:02Z")

</div>

you can try a dot product between the forward vector and the velocity vector (normalised can be better to analyse)  
and \>0 means forward and \<0 means backward (if i’m right)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7e4411ba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7e4411ba](https://forums.unrealengine.com/u/anonymous_user_7e4411ba)\
**Post date:** [May 10, 2016, 8:43pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-character-walk-backwards/357033/3 "2016-05-10T20:43:25Z")

</div>

YES!! Thatnk you Sir. You have no idea how happy you just made me. It works perfectly.

---

<div class="post-metadata">

**Author:** ![palinoia\_gamedev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@palinoia\_gamedev](https://forums.unrealengine.com/u/palinoia_gamedev)\
**Post date:** [April 30, 2018, 1:10pm UTC](https://forums.unrealengine.com/t/how-do-i-make-my-character-walk-backwards/357033/4 "2018-04-30T13:10:22Z")

</div>

Perfect solution, thanks a lot!
