2006
06.06

follow the mouse bizbasz megint

ok lehet hogy kissé jobban leragadtam a témánál mintsem érdemes lenne, de íme:placeholder for flash movie

itt az fla, de amúgy ez van benne csak :


a={_x:0,_y:0};m={_x:0,_y:0}
_root.onEnterFrame=function(){for(var p in a){m[p]+=a[p]=(a[p]+=(_root[p+"mouse"]-m[p])/10)*.9}}

follow=function(){
var x=m._x-this._x
var y=m._y-this._y
this._rotation=Math.atan2(y,x)/(Math.PI/180)
this._alpha=100-(this._xscale=Math.sqrt(x*x+y*y))
}

c=45

while(0<--c){
m=_root.createEmptyMovieClip("mc"+c,c)
m._x=random(480)
m._y=random(280)
m.lineStyle(0)
m.lineTo(100,0)
m.onEnterFrame=follow
}

No Comment.

Add Your Comment