Groups | Blog | Home
all groups > flash actionscript > may 2004 >

flash actionscript : Game Help!


Space slag Zin
5/10/2004 10:27:12 PM
I need to have a function that copies a movieclip (snow) every 500 milliseconds
and each new clip is a has a new instance name and the one before it stay on
the stage. When each clip enters the stage every 500 Ms, I want it to start
like this...
_x = xCloud
_y = yCloud

xCloud and yCloud are defined elsewhere.

Any help would...help.
Thanks,
Space Slag Zin
behived
5/11/2004 9:12:23 AM
i created this:
on the first frame of the _root:
i=1;

on the second frame:

a=getTimer()
b=500*i

if(b<a){
i++;
duplicateMovieClip("snow","snow"+i,i)
}

on the third frame:

gotoAndPlay(2);

inside snow:
i created an mc in the mc snow with the name a

snow has two layers: the action layer and the layer with the mc a (wich is on
the two first frames)
on the action layer on the first frame:
a._x=_root.xcloud;
a._y=_root.ycloud;

on the action layer on the first frame:
stop();

hope this will be helpfull to you...
AddThis Social Bookmark Button