power-box.de
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 27.02.2003, 00:55   #1
TP-Moderator
 
Benutzerbild von Madokan
 
Registriert seit: Oct 2002
Ort: Berlin/Germany
Madokan bringt sich richtig ein

Bluber MX (Blasen)


Hi Folks,

Heute Nacht haben es mir die Blasen angetan.

PHP-Code:
function setzeBlasen(objtiefexPosyPosanzahlzHoehezBreiteHoeheBreite) {
    
this.createEmptyMovieClip(obj,tiefe);
    
this[obj]._x xPos;
    
this[obj]._y yPos;
    for (
1<= anzahli++) {
        
this[obj].attachMovie("blase""blup" itiefe 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 this._width;
            }
            if (
this.wert < -3) {
                
this.richtung = +1;
            }
            if (
this.wert 3) {
                
this.richtung = -1;
            }
        };
    }    
}

setzeBlasen("raum"10030400550400550); 
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.
Madokan ist offline   Mit Zitat antworten


Alt 28.02.2003, 02:44   #2
TP-Moderator
 
Benutzerbild von Madokan
 
Registriert seit: Oct 2002
Ort: Berlin/Germany
Madokan bringt sich richtig ein
Mit Strömung:

PHP-Code:
function setzeBlasen(objtiefexPosyPosanzahlzHoehezBreiteHoeheBreiteStroemung) {
        
this.createEmptyMovieClip(obj,tiefe);
        
this[obj]._x xPos;
        
this[obj]._y yPos;
        for (var 
1<= anzahli++) {
                
this[obj].attachMovie("blase""blup" itiefe 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() {
                        
winkel+=.635
                        this
._y -= this.geschw;
                        
this._x -= this.wert;
                        
this.wert=Math.sin(winkel)*random)+Stroemung
                        
if (this._y <= 0) {
                                
this._y Hoehe;                                
                                
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 this._width;
                        }
                };
        }
}

setzeBlasen("raum"10030500550400550, -6); 
Variante zwei:

PHP-Code:
function setzeBlasen(objtiefexPosyPosanzahlzHoehezBreiteHoeheBreite) {
        
this.createEmptyMovieClip(obj,tiefe);
        
this[obj]._x xPos;
        
this[obj]._y yPos;
        for (var 
1<= anzahli++) {
                
this[obj].attachMovie("blase""blump" itiefe i);
                
this[obj]["blump" i].geschw random(7) + 5;
                
this[obj]["blump" i].wert random(4);
                
this[obj]["blump" i].richtung = -1;
                
this[obj]["blump" i].ZS random(50) + 10;
                
this[obj]["blump" i]._xscale this[obj]["blump" i].ZS;
                
this[obj]["blump" i]._yscale this[obj]["blump" i].ZS;
                
this[obj]["blump" i]._y random(zHoehe);
                
this[obj]["blump" i]._x random(zBreite);
                
this[obj]["blump" 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 this._width;
                        }
                        if (
this.wert < -random(3)) {
                                
this.richtung = +1;
                        }
                        if (
this.wert random(3)) {
                                
this.richtung = -1;
                        }
                };
        }
}

setzeBlasen("raum"10030400550400550); 
Madokan ist offline   Mit Zitat antworten
Alt 28.02.2003, 20:06   #3
TP-Senior
 
Benutzerbild von Maddog
 
Registriert seit: Mar 2001
Ort: Bünde
Maddog macht alles soweit korrekt
Thumbs up

.. einfach nur cool

Maddog
__________________
------------------------------------------
Was die Menschen Zivilisation nennen, ist der Zustand gegenwärtiger Sitten; was sie Barbarei nennen, das sind die Sitten der Vergangenheit.

Anatole France
[französischer Schriftsteller, 1844 - 1924]
Maddog ist offline   Mit Zitat antworten
Alt 01.03.2003, 12:04   #4
TP-Moderator
 
Benutzerbild von Madokan
 
Registriert seit: Oct 2002
Ort: Berlin/Germany
Madokan bringt sich richtig ein
Nun bin ich mal gespannt, wann der erste mit einem Aquarium kommt. El Tonno lässt grüssen...

Liebe Grüsse
Matze K.
Madokan ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Web-Editoren & Coding > Flash > Sammlung Actionscript 1 und 2
Bluber MX (Blasen) Bluber MX (Blasen)
« sound szenen problem | Flash X - Gästebuch »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 23:08 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67