Random Orbit?

  • tradedaemon
  • Novice
  • Novice
  • tradedaemon
  • Posts: 16

Post 3+ Months Ago

I haven't done much flash, though I've done other programming, but is there a tutorial or something on how to make an object randomly orbit a another object?
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

seems like you need several different concepts to make that work...

1. Generating Random numbers in Actionscript

use math.random() type that command into the flash help and you'll get a background on usage.

2. Moving objects via actionscript

http://www.actionscript.org/tutorials/beginner/Animation_Via_Actionscript/index.shtml

http://www.macromedia.com/devnet/mx/flash/articles/tweening.html

3. The Illusion of 3d or at least depth and layering

http://www.actionscript.org/tutorials/intermediate/swap_depths/index.shtml

http://www.kirupa.com/developer/actionscript/3dindex.htm
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

I don't know if you mean something like this, but my buddy Voetsjoeba created an solar system style orbit creator, you can see that here...
http://www.voetsjoeba.com/lab.php?i=20

If you meant more 3d, you are going to be dealing with some advanced actionscript.

Here is a basic tutorial on 3D-Rotation on an object
http://www.bit-101.com/tutorials/3D-rotation.html

But it doesn't go over things like depth swapping to have it orbit another object. See the links graphixboy posted for more info on the random aspect and depth swapping.
  • tradedaemon
  • Novice
  • Novice
  • tradedaemon
  • Posts: 16

Post 3+ Months Ago

Sweet, thanks for the help.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.