FORUMS: list search recent posts

random motion

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mary Waitrovich
random motion
on Dec 2, 2008 at 6:53:11 pm

I have been searching high and low for a tutorial or sample file to create random motion of 10-20 balls. Any help in moving toward this goad would be appreciated.
Mary Waitrovich
UW-Madison
Division of Information Technology


Return to posts index

Jen deHaan
Re: random motion
on Dec 5, 2008 at 10:16:47 pm

What version of Flash are you using? If you're using Flash CS4, you can use a random ease to create a pseudo-random effect. There are several different ways you could do this. You can either create a few different symbols, and apply a random ease to the X and Y (and Z if you want) positions to a nested instance within each one, setting the random amount to different numbers on each instance. Then you can use the Spray brush tool to spray each of the instances of each on the Stage (so you have groups that are differently animated).

Or, if you want it really differed, you can set a different tween on each and apply different random settings on the different instances.

If you're not using CS4 (or even if you are), you can use ActionScript 2.0 or 3.0 to achieve random motion. A google search will show up a variety of options for this.

-----
Jen
http://www.flashthusiast.com


Return to posts index

Mary Waitrovich
Re: random motion
on Dec 5, 2008 at 11:09:48 pm

Thanks for your response.
I don't have CS4 yet and it just isn't an option for this project, although I am eager to get a chance to learn it. I'm limited to AS3 for this project. I looked all over for AS3 tutorials and haven't found any. I'm in the process of changing my plan due to my inability to figure this out. Thanks.



Return to posts index


Jen deHaan
Re: random motion
on Dec 6, 2008 at 6:09:33 am

Here are a couple tutorials that involve random motion using code that could be ported over:

http://blog.circlecube.com/2008/06/24/brownian-movement-in-actionscript-ran...

http://www.tutorio.com/tutorial/flash-basic-random-motion

On my blog I have an AS3 example that randomly places and scales movieclips on the Stage, which are then animated (although they're animated using a CS4 feature, you could animate them using different code that's easy to find).

-----
Jen
http://www.flashthusiast.com


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]