# How to step Right/Left smoothly

**URL:** <https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167>\
**Category:** Character & Animation\
**Tags:** endless-runner, unreal-engine, question\
**Created:** [December 2, 2017, 4:56am UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167 "2017-12-02T04:56:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_070be1711](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_070be1711](https://forums.unrealengine.com/u/anonymous_user_070be1711)\
**Post date:** [December 2, 2017, 4:56am UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167/1 "2017-12-02T04:56:59Z")

</div>

How can I move more smoothly than this?:

 ![222238-player-step.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/e/b1e4b097194a7ec3400f7b61c6efb023e24b1280.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 2, 2017, 1:31pm UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167/2 "2017-12-02T13:31:28Z")

</div>

If you want to smooth out the camera movement only, attach it to a _Springarm_ and _Enable Camera Lag._

If you want to move the actor smoothly, you’ll need a slightly different approach:

 ![222259-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/7/8b75578ea7b50dbdac4d5b10ec51d86feecf202d.png)

The input sets a desired value and the interpolation node will try to reach it based on the _Interp Speed_. You will need to adapt it slightly to use the appropriate forward/right vector, of course. This is just an overall idea.

You can also combine the above-mentioned interpolation with camera lag for for utterly-buttery smoothness 😉

To get it to work like shown above, you’ll need to add proper inputs:

 ![222260-input.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/8/6/786960fc69ef8b6d066744341cc7cfd2a3ad0833.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_070be1711](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_070be1711](https://forums.unrealengine.com/u/anonymous_user_070be1711)\
**Post date:** [December 6, 2017, 6:33am UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167/3 "2017-12-06T06:33:37Z")

</div>

Hi Everynone,

Thanks again. I don’t think I know how to use Right Vector in your bp. When I press my left move key I will move left. When I hit right I keep moving left for a bit then I moves right. It’s almost seems like a delay.

The bp below yours works but after a few moves it becomes inconsistent. I end up in the middle of lanes.

Would having more than 3 lanes make a difference?

 ![222718-player-step-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/f/3bfdef09308c873cfdd77903213514b9aaa6b6d6.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [December 6, 2017, 1:15pm UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167/4 "2017-12-06T13:15:10Z")

</div>

You never mentioned any lanes in the original post. The script I posted just makes the movement smooth, it does nothing else.

Is this supposed to be like an infinite runner? Are you using 3rd person template for this?

Besides, you’re using double inputs now. Custom input mapping and Right/Left - is there a reason for this?

If you’er after an infinite runner example, consider following one of the runner tutorials, the basics are explained pretty thoroughly:

https://www.youtube.com/embed/videoseries?list=PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1&wmode=transparent&rel=0&autohide=1&showinfo=1&enablejsapi=1

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_070be1711](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_070be1711](https://forums.unrealengine.com/u/anonymous_user_070be1711)\
**Post date:** [December 7, 2017, 2:32am UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167/5 "2017-12-07T02:32:48Z")

</div>

Sorry about that. It’s a endless runner in the 3rd person template. 4.13 version.

I’ve check out his videos but his movement for left and right is a bit different than mine. I’m going for something like subway surfer and minion rush.

No real reason for the custom input mapping. Later I plan on making it so the player can customize their controls.

Thanks.

---

<div class="post-metadata">

**Author:** ![rituparno](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rituparno/32/1125530_2.png) [@rituparno](https://forums.unrealengine.com/u/rituparno)\
**Post date:** [December 3, 2020, 6:58pm UTC](https://forums.unrealengine.com/t/how-to-step-right-left-smoothly/411167/6 "2020-12-03T18:58:17Z")

</div>

**Use Unreal Spline System , This Will Be Perfect**
