Scripted curve movements

Have been trying to script curved movement whereby a random point is chosen on the stage and a mc (movie clip) moves towards it following a curved path
played around a bit and found that i couldnt quite grasp the math since it has been an age since i looked worked with my geometry
is there a tutorial i havent looked at or a site where i can find some reference material on the math behind this kind of move ment
would aprreciate the help a great deal

Thanks

You want the script or the how to do it

Curved motion = (XX)+(YY) = Constant

Or set the y position as a function of the X postion through Sin / Cos of the angle between them and the horizontal / vertical.

Rmember this will return radians where pi/2 = 180 degrees (i think)

You want a perfectly circle movement ? Or some other type of movement ?

http://www.kirupa.com/developer/mx/circular.htm

sorry was away for a while while all these replies came in. Basically what i was trying was that the mc moves snakelike towrads the chosen point.
Since the object is varying on both its _x and _y as it does this what is the trig function i can use

Sin and cos :slight_smile: there’s a trig tute…

Be nice else i’ll Tan yo ***.

Hehehehehe Trig humor < bet you never thought you see that in your lifetime or want to see it either!

Trig 101

http://math.about.com/gi/dynamic/offsite.htm?site=http%3A%2F%2Fwww.physics.uoguelph.ca%2Ftutorials%2Ftrig%2Ftrigonom.html

asante sana
(swahili for thanks)

no problem

(English for hakuna matata)

:stuck_out_tongue: