Download

moving along spline speed varies

Hello,

I have the following blueprint to move my player character along a spline on tick:

8564c4c8898bc92ef265d28d9ef8260511472285.jpeg

In the viewport, it moves quite a bit faster than in standalone or in a build.

I’m mostly just curious why this is…and also just want to make sure that when it’s played on different computers the speed won’t vary…

Thanks for any info!

Tick is when the screen refreshes the current frame, so if your framerate is variable you’ll get different results.

Multiply your movement speed by the delta time float pin on the Tick node before adding it to DistanceAlongSpline. That will fractionalize the movement by the number of milliseconds it took to render the last frame so it will always move at the same rate. Just adjust your movement speed accordingly and it should move at the same rate in any configuration.

Thanks that worked great!

Cheers to you!