+ Antworten
Ergebnis 1 bis 4 von 4

Thema: Bluber MX (Blasen)

  1. #1
    TP-Insider Madokan bringt sich richtig ein Avatar von Madokan
    Registriert seit
    Oct 2002
    Ort
    Berlin/Germany
    Beiträge
    855

    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.

  2. #2
    TP-Insider Madokan bringt sich richtig ein Avatar von Madokan
    Registriert seit
    Oct 2002
    Ort
    Berlin/Germany
    Beiträge
    855
    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); 

  3. #3
    TP-Senior Maddog macht alles soweit korrekt Avatar von Maddog
    Registriert seit
    Mar 2001
    Ort
    Bünde
    Beiträge
    110

    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]

  4. #4
    TP-Insider Madokan bringt sich richtig ein Avatar von Madokan
    Registriert seit
    Oct 2002
    Ort
    Berlin/Germany
    Beiträge
    855
    Nun bin ich mal gespannt, wann der erste mit einem Aquarium kommt. El Tonno lässt grüssen...

    Liebe Grüsse
    Matze K.

+ Antworten

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

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