Flash & Trigonometry


#1

Did anyone knows how do I make a MovieClip to follow a sin() path (sinus) ?

Any resources ?

Thanx.
:bounce:


#2

You could create a movieclip (the size of 1 dot).

And have the mc duplicated at all angles of the sine wave.

But note : some of the Math functions in flash deals with radians.


#3

onClipEvent(load) {
starty = _y
}

onClipEvent(enterFrame) {
_x += 4
_y = starty + Math.sin( _x /10 ) * 10
}


#4

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.