# Random drop stuff

**URL:** <https://forum.kirupa.com/t/random-drop-stuff/118853>\
**Category:** Uncategorized\
**Created:** [August 9, 2004, 5:45pm UTC](https://forum.kirupa.com/t/random-drop-stuff/118853 "2004-08-09T17:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yhack](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yhack](https://forum.kirupa.com/u/yhack)\
**Post date:** [August 9, 2004, 5:45pm UTC](https://forum.kirupa.com/t/random-drop-stuff/118853/1 "2004-08-09T17:45:50Z")

</div>

how do i make movie clips randomly fall from the top of the screen  
(a certain amount in a certain time then it stops after the time)

thx in advance,  
yhack

---

<div class="post-metadata">

**Author:** ![yhack](https://avatars.discourse-cdn.com/v4/letter/y/3da27b/32.png) [@yhack](https://forum.kirupa.com/u/yhack)\
**Post date:** [August 9, 2004, 8:34pm UTC](https://forum.kirupa.com/t/random-drop-stuff/118853/2 "2004-08-09T20:34:37Z")

</div>

Ive got the code for makin it fall…

on the thing thats falling

```auto
onClipEvent (load) {
 function reset() {
  this._x = random(500);
  this._y = -50;
  enemySpeed = random(9)+7;
  this.gotoAndStop(1);
  this._visible = 1;
 }
 reset();
}
onClipEvent (enterFrame) {
 if (this._y>400) {
  reset();
 }
 if (this.hitTest(_root.catcher)) {
 _root.drops = _root.drops+1;
 }
 this._y += enemySpeed;
}

```

my problem now is when i catch the water i need it so it only adds one to “drops” instead of 5 or something

```auto
if (this.hitTest(_root.catcher)) {
 _root.drops = _root.drops+1;
 }

```
