# Make a mc randomly placed, with random rotation, and sizes

**URL:** https://forum.kirupa.com/t/make-a-mc-randomly-placed-with-random-rotation-and-sizes/262966
**Category:** Uncategorized
**Created:** [June 11, 2008, 2:15pm UTC](https://forum.kirupa.com/t/make-a-mc-randomly-placed-with-random-rotation-and-sizes/262966 "2008-06-11T14:15:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pgh](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@pgh](https://forum.kirupa.com/u/pgh)
#### Post date: [June 11, 2008, 2:15pm UTC](https://forum.kirupa.com/t/make-a-mc-randomly-placed-with-random-rotation-and-sizes/262966/1 "2008-06-11T14:15:47Z")

</div>

Hello, I am trying to make this movie clip of a boot get repeated indefinitely until the  
screen is covered with a solid color. In addition, I’d like it to have it randomly change its x/yscale evenly and have a slight random rotation (like 20 or 30 degrees)… I’ve tried a few things and I think the overall result is just sloppy code… The FLA is too big to attach, but this is what I have in the first frame:

n = Number(n)+2;  
setProperty(“boots”, \_x, Math.random()\*1024);  
setProperty(“boots”, \_y, Math.random()_768);  
setProperty(“boots”, \_rotation, Math.random()30);  
duplicateMovieClip(“boots”, “”, n.07);  
duplicateMovieClip(“logos”, “”, n_.08);  
var randomSize:Number = 20+Math.random(200);  
boots.\_xscale = randomSize;  
boots.\_yscale = randomSize;

and this is in the movieclip itself:

onClipEvent (load) {  
setProperty(\_root.boots, \_visible, “0”);  
}  
THANK YOU!!
