Using a Timeline to move a Trident, but it moves right instead of left. Need a way to reverse the direction while keeping the Timeline functional.

Hi I’m using a Timeline in Unreal Engine to move a Trident, but it’s going right instead of left. The Timeline gives a value (0 to 1) that controls movement, and right now, it adds to the X position, making the Trident move right. I tried flipping the value and subtracting instead of adding, but it still doesn’t move left properly. I need help figuring out how to make it move left while keeping the Timeline working smoothly.

Could you show your code?

But without seeing it, I can say that all you need to do is getting an Add Local Offset node, right click on it’s Delta Location pin and hit the Split Struct Pin option, then multiply your float track’s value by -1 and plug the result into the exposed X component (or Y, depends on your orientation) of the delta location, and connect the Update output exec pin of your timeline to the Add Local Offset node.

To be able to switch the direction dynamically, you can create a new int / float type variable, and plug it into the other pin of the multiplication node where currently the value -1 is inserted.

Hope this helps :innocent: