PDA

View Full Version : Flash & Trigonometry


tenoztz
02-24-2003, 02:29 PM
Did anyone knows how do I make a MovieClip to follow a sin() path (sinus) ?

Any resources ?

Thanx.
:bounce:

chepe297
02-24-2003, 08:22 PM
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.

knebbes
02-24-2003, 08:52 PM
onClipEvent(load) {
starty = _y
}

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

CGTalk Moderation
01-14-2006, 12:00 PM
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.