I created a loopy animation for a shape using motion path. However, I want to reverse the direction of the motion path, when I click on a button. Could I use a JavaScript trigger to add this functionality.
I understand that there is an option in the Animation menu to reverse the direction. But, I need to change the direction of the motion path in real-time.
Hi Sunny. If I'm understanding you correctly, it sounds like you want one button that, when clicked, triggers an object to move along a motion path and then when that button is clicked again, it would move the same object in reverse along that same path? If that's correct, a True/False variable might do the trick. This discussion thread and example has an explanation and example for how to do just that.
If I've misunderstood you, please try to clarify the behavior you're looking for and I'll be glad to help.
3 Replies
Hi Sunny. If I'm understanding you correctly, it sounds like you want one button that, when clicked, triggers an object to move along a motion path and then when that button is clicked again, it would move the same object in reverse along that same path? If that's correct, a True/False variable might do the trick. This discussion thread and example has an explanation and example for how to do just that.
If I've misunderstood you, please try to clarify the behavior you're looking for and I'll be glad to help.
Thank you Trina. The discussion board did clarify the behavior of motion path.
Glad to hear the discussion board helped. Best of luck with your project!
This discussion is closed. You can start a new discussion or contact Articulate Support.