justsolo 发表于 2015-11-10 16:38

//每个部件显示1个
this.gotoAndStop(_root.boom);
_root.boom+=1
if(_root.boom<this._totalframes){
        duplicateMovieClip(this,"a",_parent.getNextHighestDepth());
       
}

//导入颜色类,并初始化黑色的值dark
import flash.filters.ColorMatrixFilter;
dark=0;
//初始化参数
this._rotation = random(360);
g = 2;
ground = _root.role.inside.body._height/2;
Vy = -(random(30))-10;
Vx = -(random(20))+10;
angel=random(30);
i=0
fst=0
//运行爆炸效果
onEnterFrame = function () {
        //爆开后开始变暗
        darkness = ;
        dark-=15;
        todark = new ColorMatrixFilter(darkness);
        this.filters = ;
        //逐帧旋转的角度递减
       
        this._rotation+=angel;
        //X,Y的位移
       
       
        this._x += Vx;
        Vy = Vy+g;
        this._y += Vy;
       
        //Z轴上scale的变化
        this._xscale=this._yscale+=Vz
       
        //当低于水平线的时候,反弹,反弹的同时降低XY的速度,并最终使之为0
        if(this._y>ground){
                angel*=-0.5;
                Vx*=0.4;
                this._y=ground;
                Vy*=-0.4;
                if(Vx<0.5){
                        Vx=0
                }
                if(Vy<1 & Vy>-1){
                        Vy=0
                }
        }
        //当停留在地面时,即XY的速度都接近于0时
        if(Vy==0 & Vx==0){
                i++;
                if(i>5){
                this._alpha-=(i-5);
               
                }
                if(this._alpha<1){
                        removeMovieClip(this);

                }
        }
       
       
};

czw131425 发表于 2015-11-10 09:41

好牛逼


跳爷 发表于 2015-11-9 18:46

神啊,终于让我找到了!

守望希望 发表于 2015-11-8 11:56

学习一下 膜拜一下

ai_cg 发表于 2015-11-7 19:23

good!!!

DOUBLER 发表于 2015-11-5 16:25

看看

陌上人 发表于 2015-11-5 16:21

看着还不错的样子····

ylywcl4 发表于 2015-11-5 16:01

看起来还不错哦
页: 1 2 3 4 [5]
查看完整版本: PS4密不可分 原型 游戏视频+GIF参考