This content has been marked as final. Show 3 replies
what do you mean the path is not straight line? what is the path? who is defining this path?
lets say i have a mechanism already to "record" the path of the two objects. I drag each object individually around the screen and record the x and y coordinates and store them into an array.
Im trying to figure out how I can synchronously playback the paths such that each object moves together.
you will need to go through your path array and move your object to the next record point in each frame.
Lets say your x coordinator array is xPath[ ] and the y coordinator array is yPath[ ]. and you want to move your object with instance name myMC. Then the code should look like that: