# Endless Runner: centering the player on a lane after turning a corner

**URL:** <https://forums.unrealengine.com/t/endless-runner-centering-the-player-on-a-lane-after-turning-a-corner/272945>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4-26, Blueprint, question\
**Created:** [January 16, 2022, 11:44pm UTC](https://forums.unrealengine.com/t/endless-runner-centering-the-player-on-a-lane-after-turning-a-corner/272945 "2022-01-16T23:44:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [January 17, 2022, 11:28am UTC](https://forums.unrealengine.com/t/endless-runner-centering-the-player-on-a-lane-after-turning-a-corner/272945/4 "2022-01-17T11:28:00Z")

</div>

I don’t really know your setup, so it’s hard to give you exact code. But let’s say the player is always running forward on X, Z never changes, so it’s Y you have to control.

Then, you need to home in on the Y coordinate of the arrow for the lane, a bit like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/e/be41349518fa8bc0dfb95f1dc6e548aeaf2492c8.png)

( You do this in addition to whatever you’re already doing to get the character to move forward ).

---

_[View the full topic](https://forums.unrealengine.com/t/endless-runner-centering-the-player-on-a-lane-after-turning-a-corner/272945)._
