| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Sightgiver Registriert seit: Aug 2001
Beiträge: 368
| Bubbles oder Schnee
Hi! Weil ich es grad gebaut hab dachte ich ich poste es. Vielleicht braucht ja jemand auch mal sowas. Kann man für Schnee, Luftblasen und ähnliches verwenden. Man braucht nur einen MC mit dem Namen go (verlinkt) in der Library. Code: _root.i = 1;
_root.onEnterFrame = function() {
varianz = random(50);
_root.attachMovie("go", "go"+_root.i, _root.i);
_root["go"+_root.i]._x = random(350);
_root["go"+_root.i]._y = 150;
_root["go"+_root.i]._xscale = 30+varianz;
_root["go"+_root.i]._yscale = 30+varianz;
_root["go"+_root.i].speed = 2 + random (2);
_root["go"+_root.i].onEnterFrame = function() {
this._y = this._y-this.speed;
//Damit es nicht ganz gerade runter/rauf fliegt wird es ab und zu leicht versetzt
xmove = random(7);
if (xmove == 1) {
this._x++;
} else if (xmove == 2) {
this._x--;
}
if (this._y<-0) {
this.stop();
removeMovieClip(this);
}
};
_root.i++;
}; Gruß Arator
__________________ The issue is not whether you are paranoid. The issue is whether you are paranoid enough. Geändert von Arator (16-08-2004 um 16:28 Uhr) |
| | |
| | #2 (permalink) |
| Sightgiver Registriert seit: Aug 2001
Beiträge: 368
|
Mit Timer Code: _root.i = 1;
_root.timer = 0;
_root.onEnterFrame = function() {
varianz = random(50);
if (_root.timer == 0) {
_root.attachMovie("go", "go"+_root.i, _root.i);
_root["go"+_root.i]._x = random(350);
_root["go"+_root.i]._y = 150;
_root["go"+_root.i]._xscale = 30+varianz;
_root["go"+_root.i]._yscale = 30+varianz;
_root["go"+_root.i].speed = 2+random(2);
_root["go"+_root.i].onEnterFrame = function() {
this._y = this._y-this.speed;
//Damit es nicht ganz gerade runter/rauf fliegt wird es ab und zu leicht versetzt
xmove = random(7);
if (xmove == 1) {
this._x++;
} else if (xmove == 2) {
this._x--;
}
if (this._y<-0) {
this.stop();
removeMovieClip(this);
}
};
_root.i++;
}
//Nur alle 10 Frames attachen
if (_root.timer<10) {
_root.timer++;
} else {
_root.timer = 0;
}
};
__________________ The issue is not whether you are paranoid. The issue is whether you are paranoid enough. |
| | |
| | #4 (permalink) |
| lernwillig Registriert seit: Jan 2002 Ort: auf dem Land
Beiträge: 1.327
| Cool! Wenn mal jemand Schneeflocken braucht. Vielleichtkann man auch Schneetreiben von rechts nach links veranstalten, wenn man das Prinzip etwas abwandelt. Oder die Größe/Farbe variieren? Gruss 23012 |
| | |
| | #5 (permalink) |
| Neuer User Registriert seit: Apr 2004 Ort: St. Florian
Beiträge: 459
| http://www.flashtalk.at/tutorial/detail.php?tut=93 schneeflocken http://www.flashtalk.at/tutorial/detail.php?tut=95 bubbles
__________________ www.reion.tk --- *nastyBasty, *nonverbla, *miii, *specs2, *kikuchiro, *Tom(2), *Tarantoga, *Prist0r, *heidlbeer, *silentx, *socratez, *isildur, *mmgraphics, *tackle_zone, *raschu, *-+FleshMen 08+-, *guz3l, *Flashyrobin, *teddy86+, *Jasper99, *Don Krawallo, *pLan58+, Sly-Design+, *obscur+, *mxpro-filer+; P |SL, e621, destroy90210, Karsten572, simon ventura, tasovi, salami04, Mulitreiber, dat brot, boyi, rosco, gaspode, dirkgently, Sash^noob; / *X-Production, mika97, derBauer1234, strolchi04 \ |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |