Matthias Kannengiesser
Erfahrenes Mitglied
Hi Folks,
Hier mal wieder was zum Spielen und ausprobieren:
Aufruf:
trigoMove(200, 150, 350, 200, 100, 100, 50, 50);
Beispiele:
Variante Eins
Variante Zwei
Variante Drei
Variante Vier
Variante Fünf
Be inspired...
mfg
Matze K.
Hier mal wieder was zum Spielen und ausprobieren:
PHP:
movieclip.prototype.trigoMove = function (mX,mY,fX,fY,sX,sY,fsX,fsY) {
name = "kreis"+t;
duplicateMovieClip (kreis, name, t);
_root[name]._x = Math.cos(a)*mX+fX;
_root[name]._y = Math.sin(b)*mY+fY;
_root[name]._rotation = t*rot;
_root[name]._xscale = Math.cos(b)*sX+fsX;
_root[name]._yscale = Math.sin(a)*sY+fsY;
a += diffX;
b += diffY;
t++;
}
Aufruf:
trigoMove(200, 150, 350, 200, 100, 100, 50, 50);
Beispiele:
Variante Eins
Variante Zwei
Variante Drei
Variante Vier
Variante Fünf
Be inspired...
mfg
Matze K.