How to move an object to multiple locations with a single timeline

I am trying to create an object that moves from a starting location to two other locations with a pause between each movement Using a timeline. I have a timeline with an Alpha(Float track from 0 to 1) that lerps between two vectors to move the object. Do I need a timeline for each individual location or can you move the object to three locations using the same timeline and if so how would you set this up? I tried setting up a float track for each move with no success, I tried adding a longer track with multiple relative location changes, no success. There has to be some detail I am missing. Thank you for the help in advance.

A single Timeline track should be enough here. As you said, you move from A to B and the TL’s track serves just as alpha.

  • keep the locations in an array, locations A, B and C at indexes 0, 1 & 2
  • when the timeline plays for the 1st time, use the locations in the array 0 & 1 as start / end points (move from A to B)
  • when the TL plays the second time, use the locations in the array 1 & 2 as start / end points (move from B to C)

Here’s are some more ways you can recycle a Timeline:

thanks for the advice, I did mess around with this a bit but in the end went with a spline system so I could dynamically alter the path and locations.

Makes sense. You can still use a timeline to dynamically move spline points. :slight_smile: Just sayin’

I’m struggling to make this. Could you make an example?

Not sure what you’re after precisely, but if the generic:

  • keep the locations in an array, locations A, B and C at indexes 0, 1 & 2
  • when the timeline plays for the 1st time, use the locations in the array 0 & 1 as start / end points (move from A to B)
  • when the TL plays the second time, use the locations in the array 1 & 2 as start / end points (move from B to C)

Suggested above is it, then:

It will cycle through the locations in the array and Lerp between the vectors; and wait for 1s before carrying on.


There’s probably half a dozen ways to achieve that. And this method may not be suitable in certain scenarios. You generally choose the right tool for the job. You can also follow the link in the post above to see more examples.