Moving an Icon Along a Motion Path and then Back to Start Upon Layer Change.

Jan 30, 2024

Hello, 

In my build, I have an icon that, when clicked, will move to the left via a motion path and then shows a layer. When the user hides the layer, I want the icon to move back along the motion path to initial position before showing the base layer. I can not get the icon to move back to start and stay there. Is this possible?

4 Replies
Walt Hamilton

The object is on the base, and that's where it moves. I don't think you can control the motion path on one layer from another. It seems to me that your options are

1) show the base and move the object (clearly the easiest) or

2) create a duplicate object on the layer, move it, and show the base.  What makes that tricky is that you have to also somehow move the original object back invisibly. You might be able to do it with a motion path that has a .1 duration. When the layer object moves, tie the completion of that path to a trigger that hides the layer, and another that changes the value of a variable (I would toggle a T/F). Then on the base, move the original object back on the short time path when the variable changes.