Results 1 to 5 of 5
Thread: LOOP AS
Hybrid View
-
2nd December 2010 17:00 #1Registered User
Join Date: May:2009
Location: varna
Posts: 14
LOOP AS
,
, , ? !
baslama_suresi = 50;
kar_seyrekligi = 1;
kar_hiz = 0.5;
kar_boyut = 0;
bitis_suresi = 3500;
a = 0;
i = -1;
mc._y = -mc._height;
function cogalt() {
a++;
if (a>bitis_suresi) {
clearInterval(z);
}
i++;
_root.mc.duplicateMovieClip("mc"+i, i);
_root["mc"+i].hiz = kar_hiz+random(6);
_root["mc"+i].boyut = kar_boyut+random(5);
_root["mc"+i]._x = random(Stage.width);
_root["mc"+i].rasgele = random(2);
_root["mc"+i].cacheAsBitmap(true);
if (_root["mc"+i].rasgele == 0) {
_root["mc"+i].konum = -(random(3));
} else {
_root["mc"+i].konum = +(random(3));
}
_root["mc"+i].onEnterFrame = function() {
this._y += this.hiz;
this._x += this.konum;
this._width = this._height=this.boyut;
if (this._x>Stage.width or this._x<0 or this._y>Stage.height) {
delete this.onEnterFrame;
removeMovieClip(this);
}
if (_root.engel.hitTest(this._x, this._y, true)) {
delete this.onEnterFrame;
}
};
}
s = 0;
function sure() {
s++;
if (s>baslama_suresi) {
z = setInterval(cogalt, kar_seyrekligi);
clearInterval(zamanla);
}
}
zamanla = setInterval(sure, 90);
-
2nd December 2010 19:36 #2
-
2nd December 2010 20:10 #3
-
2nd December 2010 20:28 #4Registered User
Join Date: May:2009
Location: varna
Posts: 14
.
"" , ?
.
-
2nd December 2010 23:24 #5




Reply With Quote


Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in