Play free games online!


Go Back   The Game Homepage Forums > Development > Flash Development

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-02-2008, 05:51 PM
Bigmutha's Avatar
Moderator
Power Drill
Better than 70.21% Better than 70.21% Better than 70.21%
 

Join Date: Aug 2007
Location: Chico, California
Posts: 1,757
Bigmutha is a jewel in the roughBigmutha is a jewel in the rough
Send a message via AIM to Bigmutha Send a message via MSN to Bigmutha
Default Spawning MC's on a Circle

I have a circle named "circle" (Not really, but I'm making no spoilers!) and I want to spawn a movieclip called "oval" at the edge of "circle".

Also, how do I make it spawn at random places, at the edge of the circle? Like different degrees on the circle. (first time at 32 degrees, next at 245, 149, etc.)
__________________
Reply With Quote
  #2  
Old 07-02-2008, 09:05 PM
Gaz's Avatar
Gaz Gaz is offline
Administrator
Power Drill
Better than 63.31% Better than 63.31% Better than 63.31%
 

Join Date: Jun 2007
Location: Ipswich, UK
Posts: 1,022
Gaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to beholdGaz is a splendid one to behold
Default

Oh gees. Well you need to pick a random angle then use the circles radius and some trig to find the position it would be on the circles edge. Are these things coming out of the circle? You might be able to use an easier trick such as place them in the middle of the circle but behind it so they still look like they're coming out of the edges ?
Reply With Quote
  #3  
Old 07-02-2008, 09:12 PM
mesges's Avatar
Gamer
Power Drill
Better than 21.92% Better than 21.92% Better than 21.92%
 

Join Date: Aug 2007
Location: Surrey, England, look at an atlas if u dont know where that is (ys an ATLAS for all u americans...)
Posts: 1,760
mesges will become famous soon enoughmesges will become famous soon enoughmesges will become famous soon enoughmesges will become famous soon enoughmesges will become famous soon enough
Default

Gaz, do you know the trig?

And maybe flash includes some method, since rotation uses the same kind of working...
__________________

FISHIE!!!

<>< ><> <>< ><> <>< ><><>< ><> <>< ><> <><
Reply With Quote
  #4  
Old 07-02-2008, 10:33 PM
Bigmutha's Avatar
Moderator
Power Drill
Better than 70.21% Better than 70.21% Better than 70.21%
 

Join Date: Aug 2007
Location: Chico, California
Posts: 1,757
Bigmutha is a jewel in the roughBigmutha is a jewel in the rough
Send a message via AIM to Bigmutha Send a message via MSN to Bigmutha
Default

I sent you a PM Gaz. It will be easier to understand.
__________________
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:59 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2007, Crawlability, Inc.

Ad Management by RedTyger