Forum Discussion
RyanPassey
5 months agoCommunity Member
Drag Along a Motion Path
Is it possible to drag an object along a designated motion path? This could be used to drag a car image straight along a road to the finish line, w/o it leaving the road. It could drag a golf ball...
Nathan_Hilliard
5 months agoCommunity Member
It depends upon how much effort you want to invest in this. Using GSAP (part of Storyline) and the MotionPath plugin, you can extract the X/Y coordinates of any point along an SVG path. For example, if you had a parabola, you could advance a slider from 0 to 1 and traverse the entire length of the path. Probably easiest is to is to use GSAP to move your object along the path. See this post for an example of how to do that.
You would need to make sure you compensate for window resizing when using GSAP (i.e., you need to know where you item should be at any given time, so if things resize you can put it back in the right place.