# Endless runner. Spline paths

**URL:** <https://forums.unrealengine.com/t/endless-runner-spline-paths/461999>\
**Category:** Blueprint\
**Tags:** endless-runner, unreal-engine, path, Spline, Blueprint, question\
**Created:** [March 2, 2020, 11:40am UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999 "2020-03-02T11:40:30Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![GameMakr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameMakr](https://forums.unrealengine.com/u/GameMakr)\
**Post date:** [March 30, 2022, 2:49pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/22 "2022-03-30T14:49:23Z")

</div>

I am sorry if this is a silly question, I am still learning.

---

<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:** [March 30, 2022, 3:34pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/23 "2022-03-30T15:34:32Z")

</div>

Not at all. You CAN run it line that and connect it up, but in the function details, you can also make it ‘pure’

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/6/4964e4600c353da3334b17105654cf39ec425194.png)

---

<div class="post-metadata">

**Author:** ![GameMakr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameMakr](https://forums.unrealengine.com/u/GameMakr)\
**Post date:** [March 30, 2022, 4:14pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/24 "2022-03-30T16:14:53Z")

</div>

Thank you, bro 🙏

---

<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:** [March 30, 2022, 4:15pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/25 "2022-03-30T16:15:56Z")

</div>

Does it work? 🙂

This system only goes in one direction, mind…

---

<div class="post-metadata">

**Author:** ![GameMakr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameMakr](https://forums.unrealengine.com/u/GameMakr)\
**Post date:** [March 30, 2022, 4:38pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/26 "2022-03-30T16:38:19Z")

</div>

Yeah it works perfectly till now.

---

<div class="post-metadata">

**Author:** ![GameMakr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GameMakr](https://forums.unrealengine.com/u/GameMakr)\
**Post date:** [March 30, 2022, 4:40pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/27 "2022-03-30T16:40:10Z")

</div>

i have added 2 more spline in tile and switch between lane when player set the input

---

<div class="post-metadata">

**Author:** ![R3DMyst89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/r3dmyst89/32/475719_2.png) [@R3DMyst89](https://forums.unrealengine.com/u/R3DMyst89)\
**Post date:** [April 3, 2022, 11:00pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/28 "2022-04-03T23:00:44Z")

</div>

hey there, i’ve been trying this for weeks now and stumbled across this post… i tried both methods, the first one made it so that the character is stuck on the spline point but cant move at all and the second method, nothing happens at all, the character can move around freely as if the tile isn’t even there. I’m fairly new to the programming side of things as far as UE4 goes… I probably missed something but I have NO idea what.

---

<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:** [April 4, 2022, 8:07am UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/29 "2022-04-04T08:07:47Z")

</div>

The tile in the blueprint, is a mesh with a two point spline on it. The spline start and the point on the other side of the tile. Is that what you have?

---

<div class="post-metadata">

**Author:** ![R3DMyst89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/r3dmyst89/32/475719_2.png) [@R3DMyst89](https://forums.unrealengine.com/u/R3DMyst89)\
**Post date:** [April 4, 2022, 6:16pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/30 "2022-04-04T18:16:36Z")

</div>

Yeah, i have the static mesh with a standard cube in it, scaled down to make it thinner (that could be the problem?), with the spline with 2 points (start and end) and the collision box. I’ll post some screenshots of the whole thing (the tile BP and its code, the third person char and its code + function) and possibly a gif of the current behavior.

---

<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:** [April 4, 2022, 6:19pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/31 "2022-04-04T18:19:25Z")

</div>

This is what I have

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/a/a8ad96808e95beda31cf8ea79c6383804a28199e.jpeg)

---

<div class="post-metadata">

**Author:** ![R3DMyst89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/r3dmyst89/32/475719_2.png) [@R3DMyst89](https://forums.unrealengine.com/u/R3DMyst89)\
**Post date:** [April 4, 2022, 6:25pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/32 "2022-04-04T18:25:18Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/7/e1758dbac04118673e74161b981c2cc8e8c6437a.jpeg)  
I have the exact same thing, but i see now that i don’t have the player location variable in the tile but in the thirdpersoncharacter

---

<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:** [April 4, 2022, 6:29pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/33 "2022-04-04T18:29:34Z")

</div>

Yes, it’s all in the tile.

---

<div class="post-metadata">

**Author:** ![R3DMyst89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/r3dmyst89/32/475719_2.png) [@R3DMyst89](https://forums.unrealengine.com/u/R3DMyst89)\
**Post date:** [April 4, 2022, 6:32pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/34 "2022-04-04T18:32:07Z")

</div>

you mean the whole code? So the “event tick” part is also in the tile? I kind of assumed that was done in the character… 😅

---

<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:** [April 4, 2022, 6:33pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/35 "2022-04-04T18:33:51Z")

</div>

Nope, in the tile…

---

<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:** [April 4, 2022, 6:34pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/36 "2022-04-04T18:34:32Z")

</div>

That’s why we have this

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/4/c84c60aa4240b4a6e89cfa0d958408ff3e2c1e15.png)

---

<div class="post-metadata">

**Author:** ![R3DMyst89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/r3dmyst89/32/475719_2.png) [@R3DMyst89](https://forums.unrealengine.com/u/R3DMyst89)\
**Post date:** [April 4, 2022, 6:35pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/37 "2022-04-04T18:35:11Z")

</div>

Ah… Well… There’s the problem 🤣 Thanks man, i’ll try and fix that and i’ll let you know if it works 😃

---

<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:** [April 4, 2022, 6:36pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/38 "2022-04-04T18:36:03Z")

</div>

Keep me posted 🙂

---

<div class="post-metadata">

**Author:** ![R3DMyst89](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/r3dmyst89/32/475719_2.png) [@R3DMyst89](https://forums.unrealengine.com/u/R3DMyst89)\
**Post date:** [April 4, 2022, 7:00pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/39 "2022-04-04T19:00:37Z")

</div>

Okay i have it working now (thanks for that explanation 😄 ), it doesnt follow corners though 🤔

---

<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:** [April 4, 2022, 7:02pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/40 "2022-04-04T19:02:29Z")

</div>

Does for me, you can put more points to make it a nice curve.

Also, be aware, the player can only move on way along the spline.

---

<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:** [April 4, 2022, 7:20pm UTC](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999/41 "2022-04-04T19:20:25Z")

</div>

Did you get it?

[Previous page](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999.md?page=1)

[Next page](https://forums.unrealengine.com/t/endless-runner-spline-paths/461999.md?page=3)
