# Rising movieclips - reset position

**URL:** <https://forum.kirupa.com/t/rising-movieclips-reset-position/107453>\
**Category:** Uncategorized\
**Created:** [April 15, 2004, 4:05pm UTC](https://forum.kirupa.com/t/rising-movieclips-reset-position/107453 "2004-04-15T16:05:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![massive3215](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/massive3215/32/253_2.png) [@massive3215](https://forum.kirupa.com/u/massive3215)\
**Post date:** [April 15, 2004, 4:05pm UTC](https://forum.kirupa.com/t/rising-movieclips-reset-position/107453/1 "2004-04-15T16:05:15Z")

</div>

I have a moviclip duplicating 200 times and rising off the top of the screen. When it moves completely off the stage, and I want it to move back to the bottom of the screen and rise up again. Right now it just keeps going up off the stage and doesn’t replace itself. Any ideas? Here is my code on my movieclip:

onClipEvent (load) {  
screenwidth = 400;  
screenheight = 400;  
speed = (Math.random()\*1)+.1;  
\_y = Math.random()\*screenheight;  
\_x = Math.random()_screenwidth;  
}  
onClipEvent (enterFrame) {  
\_y -= speed;  
//if brick hits height limit reset brick to top of screen  
if (\_y\>(screenheight+(\_height/2))) {  
\_y = 0-(\_height/2);  
//give new x value within in screen  
\_x = (Math.random()_(screenwidth-\_width))+\_width/2;  
}  
}

Here is the code on my actions layer:  
fscommand(“allowscale”,“false”);  
fscommand(“fullscreen”,“false”);  
stop();  
//tell how many clips  
clipcopies = 200;  
//duplicate clip however many times we specified above  
for(var v=0;v\< clipcopies;v++){  
smoke.duplicateMovieClip(smoke+v,v);  
};

Thanks!
