|
-
Senior Member
http://www.ironmallet.com/flashkit/accrete2.htm
bit thanks for giving me the tools to make this work, still could play with the parameters a bit (of course)
I can't get it to load into an empty movie clip, the way I'm going to on my home page...
it, like the accrete program, borrows heavily from you.
it has to do with the _root references I'm sure, but I've tried alot of different things to no avail...
you wouldn't want to look at this, esp the ******** parts?
i really don't understand those bits at all!
anyway, thanks again, i've been after this since before I found flash. go bit-101 go.
p.s. the trampoline is killer.
Code:
init();
_root.onEnterFrame = main; <*********
function init() {
damp = .99;
max = 30;
grav = 1;
bounce = -.99;
b = new Array();
for (i=0; i<max; i++) {
attachMovie("ball", "b"+i, i);
var ball = b[i]=_root["b"+i]; <********
ball._x = Math.random()*500+20;
ball._y = Math.random()*360+20;
ball.vx = Math.random()*20-10;
ball.vy = Math.random()*10-5;
ball.m = ball._width=ball._height=Math.random()*15+5;
ball.m*=3;
ball.radius = ball._width/2;
}
}
function main() {
for (i=0; i<b.length; i++) {
var ball = b[i];
ball.vx *= damp;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|