# Problem with accurately positioning my MC in a circle of circles

**URL:** <https://forum.kirupa.com/t/problem-with-accurately-positioning-my-mc-in-a-circle-of-circles/279506>\
**Category:** Uncategorized\
**Created:** [January 15, 2009, 1:23pm UTC](https://forum.kirupa.com/t/problem-with-accurately-positioning-my-mc-in-a-circle-of-circles/279506 "2009-01-15T13:23:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OlaB](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@OlaB](https://forum.kirupa.com/u/OlaB)\
**Post date:** [January 15, 2009, 1:23pm UTC](https://forum.kirupa.com/t/problem-with-accurately-positioning-my-mc-in-a-circle-of-circles/279506/1 "2009-01-15T13:23:39Z")

</div>

[FONT=Arial][SIZE=3]Hello![/SIZE][/FONT]  
[FONT=Arial][SIZE=3] I have a problem with accurately positioning my MC in a circle of circles. I have tried the following formulas with no success:[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]radians = degrees\* Math.PI / 180 [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]degrees = radians \* Math.PI / 180[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]and[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]ball.x = centerXs + Math.cos(angle)\* radius2 ; [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]ball.y = centerYs + Math.sin(angle)\* radius2;[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]This is my code:[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]for(var i:Number=0; i\<list.length();i++)[/SIZE][/FONT]  
[FONT=Arial][SIZE=3]{[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] ball = new Ball2(10) [/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [//ball.x=](https://ball.x=)???[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [//bal.y=](https://bal.y=)???[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3] addEventListener(MouseEvent.MOUSE\_DOWN, onDown);[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] addEventListener(MouseEvent.MOUSE\_UP, onUp);[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] addChild(ball);[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3] handles.push(ball);[/SIZE][/FONT]  
[FONT=Arial][SIZE=3]}[/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3] [/SIZE][/FONT]  
[FONT=Arial][SIZE=3]Pleas help![/SIZE][/FONT]  
[FONT=Arial][SIZE=3]Ola[/SIZE][/FONT]
