Matthias Kannengiesser
Erfahrenes Mitglied
Hi Folks,
Heute Nacht haben es mir die Blasen angetan.
Beispiele:
Aqualand
Dreier Bluber
Ihr benötigt lediglich eine Filmsequenz als vorlage - es können natürlich auch verschiedene sein. Denkt jedoch an den Verknüpfungsnamen!
Liebe Grüsse
Matze K.
Heute Nacht haben es mir die Blasen angetan.

PHP:
function setzeBlasen(obj, tiefe, xPos, yPos, anzahl, zHoehe, zBreite, Hoehe, Breite) {
this.createEmptyMovieClip(obj,tiefe);
this[obj]._x = xPos;
this[obj]._y = yPos;
for (i = 1; i <= anzahl; i++) {
this[obj].attachMovie("blase", "blup" + i, tiefe + i);
this[obj]["blup" + i].geschw = random(7) + 5;
this[obj]["blup" + i].wert = random(4);
this[obj]["blup" + i].richtung = -1;
this[obj]["blup" + i].ZS = random(50) + 10;
this[obj]["blup" + i]._xscale = this[obj]["blup" + i].ZS;
this[obj]["blup" + i]._yscale = this[obj]["blup" + i].ZS;
this[obj]["blup" + i]._y = random(zHoehe);
this[obj]["blup" + i]._x = random(zBreite);
this[obj]["blup" + i].onEnterFrame = function() {
this._y -= this.geschw;
this._x -= this.wert;
this.wert += this.richtung;
if (this._y <= 0) {
this._y = Hoehe;
this.wert = random(4);
this.geschw = random(7) + 5;
this.ZS = random(50) + 10;
}
if (this._x <= 0) {
this._x = Breite - this._width;
}
if (this._x >= Breite) {
this._x = 0 + this._width;
}
if (this.wert < -3) {
this.richtung = +1;
}
if (this.wert > 3) {
this.richtung = -1;
}
};
}
}
setzeBlasen("raum", 1, 0, 0, 30, 400, 550, 400, 550);
Beispiele:
Aqualand
Dreier Bluber
Ihr benötigt lediglich eine Filmsequenz als vorlage - es können natürlich auch verschiedene sein. Denkt jedoch an den Verknüpfungsnamen!
Liebe Grüsse
Matze K.