Does Timeline have bugs?

I use a Timeline with a length of 5 seconds.
Key frame 1: when the time is 0, the value is 0, key frame 2: when the time is 5, the value is 1
I use lerp, when the event is clicked by the mouse, it controls an Actor to move from one position to another for five seconds. But actually this action is actually done in 2 second (I don’t know how long it is, but it’s fast, definitely not more than 2 seconds). The Timline doesn’t actually end after the Actor reaches its destination. For the remaining 3 seconds, I click the mouse and it will continue to move. As long as I click the mouse, this event will never stop. The Actor moves infinitely to the target position unless I wait 5 seconds at a time.


I want to move evenly from one position to another along the length of the time axis. The time at which the target position is reached is the time at which the timeline ends. You can avoid this bug (if it is a bug)

You have to calculate the values you’re going to lerp before you go into the timeline, you can’t sample them during the timeline.

You sample and setting the actor location here :slight_smile:

Providing this is hooked up to a click, every click restarts the TL from scratch. You’re also sampling the result while the timeline does its thing - the results will be inconsistent. Try this:

Sorry, I didn’t make it clear, I actually set up the Timeline in progress elsewhere and couldn’t enable mouse events. My problem is mainly in the unevenness of time, the same location. Regardless of whether I set the length to 5, 10 or 20, the event is completed in 2 seconds, and the remaining 3, 8, and 18 seconds are meaningless waiting time. What I want to solve is the uniform problem, that is, no matter how far the distance is, the moving time should be the length I set, instead of waiting for a long time after the teleportation passes. Only 2 seconds are actually executed for the event.

According to the normal logic, the event should be executed within 5 seconds, instead of waiting for the remaining times after an instant completion. So what is the significance of such a time axis, it is better to use Set Location directly.

The reason for the mouse click issue is that after the Actor reaches its destination, I thought the event was done.

I can only say that the timelines are robust and bug free - afaik. The issue is, most likely, with scripting. The data re-sampling we see in your screenshots will produce artefacts; it’s a common trap. Many issues can stem from it and manifest in a myriad of ways.


If in doubt, do explain what we’re making and how things should work.