# What to replace with timeline component to get the character going both ways in a spline, and distance and speed based instead time?

**URL:** <https://forums.unrealengine.com/t/what-to-replace-with-timeline-component-to-get-the-character-going-both-ways-in-a-spline-and-distance-and-speed-based-instead-time/2673447>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, please-help-me, Spline\
**Created:** [November 10, 2025, 12:10pm UTC](https://forums.unrealengine.com/t/what-to-replace-with-timeline-component-to-get-the-character-going-both-ways-in-a-spline-and-distance-and-speed-based-instead-time/2673447 "2025-11-10T12:10:37Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [November 10, 2025, 1:59pm UTC](https://forums.unrealengine.com/t/what-to-replace-with-timeline-component-to-get-the-character-going-both-ways-in-a-spline-and-distance-and-speed-based-instead-time/2673447/11 "2025-11-10T13:59:17Z")

</div>

See this

> [@What math to calculate an even play rate for movement along a spline regardless of length?](https://forums.unrealengine.com/t/what-math-to-calculate-an-even-play-rate-for-movement-along-a-spline-regardless-of-length/630738):
>
> I’ve set up a simple actor BP with a spline and a skeletal mesh that moves along said spline. I’ve also set the play rate of my timeline (which is 1 second long) to be 1/DurationInSeconds meaning whatever number I type for DurationInSeconds is how long it will take to play the timeline. It’s all working perfectly. My question is; what would the math be to determine the duration to use regardless of the length of the spline so that the mesh looks like it’s always moving at a consi…

---

_[View the full topic](https://forums.unrealengine.com/t/what-to-replace-with-timeline-component-to-get-the-character-going-both-ways-in-a-spline-and-distance-and-speed-based-instead-time/2673447)._
