# How can I made the ramdom circles move in a sine-wave form?

**URL:** <https://forum.kirupa.com/t/how-can-i-made-the-ramdom-circles-move-in-a-sine-wave-form/42513>\
**Category:** Uncategorized\
**Created:** [February 10, 2004, 12:39am UTC](https://forum.kirupa.com/t/how-can-i-made-the-ramdom-circles-move-in-a-sine-wave-form/42513 "2004-02-10T00:39:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![latino](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@latino](https://forum.kirupa.com/u/latino)\
**Post date:** [February 10, 2004, 12:39am UTC](https://forum.kirupa.com/t/how-can-i-made-the-ramdom-circles-move-in-a-sine-wave-form/42513/1 "2004-02-10T00:39:43Z")

</div>

:jail: I’m trap!!!

I have the MX fla for the ramdon circles movement. I want them to form a sine-wave movement.

I alredy tried Math.sin(X) for it and it wont work.

I would like somebody to help.☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 10, 2004, 1:18am UTC](https://forum.kirupa.com/t/how-can-i-made-the-ramdom-circles-move-in-a-sine-wave-form/42513/2 "2004-02-10T01:18:18Z")

</div>

for a sine effect put this on the mc  
[AS]  
onClipEvent(enterFrame){  
\_x+=5  
\_y=Math.sin(\_x\*(Math.PI/180))\*50  
}  
[/AS]
