# Why does timeline length alter move distance for Set Actor Relative Location?

**URL:** <https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356>\
**Category:** Blueprint\
**Tags:** timeline, setactorlocation, unreal-engine, Blueprint, question\
**Created:** [April 8, 2017, 8:28pm UTC](https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356 "2017-04-08T20:28:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![X4nd0R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X4nd0R](https://forums.unrealengine.com/u/X4nd0R)\
**Post date:** [April 8, 2017, 8:28pm UTC](https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356/1 "2017-04-08T20:28:33Z")

</div>

I have a timeline set to move an object over a set number of times. I currently have the length set to 0.5 and it moves my object along the z-axis -2.8.

 ![133402-timeline.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/4/b14ebf4b96d05020c3e040534ad9d30b74183a48.png)

Everything works perfectly when run but if I am to alter the length of the timeline in the blueprint then it seems to change the distance the object moves even though it is still set to -2.8.

Shouldn’t the distance the object moves stay the same as long as I don’t alter my vector?

---

<div class="post-metadata">

**Author:** ![vanlacke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vanlacke](https://forums.unrealengine.com/u/vanlacke)\
**Post date:** [April 8, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356/2 "2017-04-08T20:56:06Z")

</div>

“Update” will move your actor every tick by -2.8. If you increase the length of the timeline, more ticks will occur, hence moving the object further.

Try printing the actor location right after you update to better see what’s happening.

---

<div class="post-metadata">

**Author:** ![X4nd0R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X4nd0R](https://forums.unrealengine.com/u/X4nd0R)\
**Post date:** [April 9, 2017, 2:48am UTC](https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356/3 "2017-04-09T02:48:41Z")

</div>

You are absolutely right! I did not understand what it was doing at all. I come from a webdev background in which the functions are more of: move this distance over this amount of time. Been programming for a long time but just started with game dev this week. This visual scripting is a whole different world.

---

<div class="post-metadata">

**Author:** ![X4nd0R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X4nd0R](https://forums.unrealengine.com/u/X4nd0R)\
**Post date:** [April 9, 2017, 5:01pm UTC](https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356/4 "2017-04-09T17:01:31Z")

</div>

So now I understand why it’s doing that when I change the timeline length. But then why if my system starts getting bogged down does the animation not complete accurately 100% of the time? I’m writing a script to stack blocks procedurally created. Half of the blocks will stack inaccurately.

![133493-stack.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/7/467cdff6f0a195acc73be1afcd46c8e1d0f70b42.png)

This started happening more after I built my lighting and when I move the camera around it gets worse. My system is extremely old and slow so I except some glitches in graphics during movement but I figured the end placement should still be the same.

---

<div class="post-metadata">

**Author:** ![X4nd0R](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@X4nd0R](https://forums.unrealengine.com/u/X4nd0R)\
**Post date:** [April 9, 2017, 5:30pm UTC](https://forums.unrealengine.com/t/why-does-timeline-length-alter-move-distance-for-set-actor-relative-location/390356/5 "2017-04-09T17:30:54Z")

</div>

Nevermind, I figured it out. I had my lerp setup incorrectly.
