Particle Effect

Particle Effect

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player



主要是透過 decrease 這一個Number 讓 attach 進來的光球 可以 漸漸變形& 淡出
for (var i:uint = 0; i < hole.numChildren; i++ ) {
var mc:DisplayObject = hole.getChildAt(i);
mc.scaleX *= decrease;
mc.scaleY *= decrease;
mc.alpha *= alpha_num;
if ( mc.alpha < 0.1 ) {
me.hole.removeChild( mc );
}
}

只要加上一些 Blur 跟 alpha 就蠻有感覺得
me.filters = [ new BlurFilter( blurRate, blurRate, 3 ) ];
mc.alpha = 0.5;

留言