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
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
Ive got the code for makin it fall…
on the thing thats falling
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
if (this.hitTest(_root.catcher)) {
_root.drops = _root.drops+1;
}