日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

Flash AS打造超強(qiáng)粒子視覺(jué)沖擊特效_Flash教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!

推薦:由淺入深學(xué)習(xí)Flash制作賽車(chē)游戲教程
賽車(chē)游戲我們總是碰到!今天給大家簡(jiǎn)單講解一下。先測(cè)試效果:點(diǎn)擊這里下載源文件首先新建立一個(gè)賽車(chē)影片剪輯,由6個(gè)圖層組成一個(gè)基本的賽車(chē)。放到舞臺(tái)上的

超強(qiáng)的粒子特效,效果非常好,和大家分享:



#initclip 1
function PoolClass()
{
this.stick = {x: 300, y: 169};
this.onEnterFrame = this.dragStick;
} // End of the function
PoolClass.prototype = new MovieClip();
PoolClass.prototype.dragStick = function ()
{
if (this.stick.x < 0)
{
this.stick.vx = this.stick.vx 4 * Math.random();
}
else if (this.stick.x > 600)
{
this.stick.vx = this.stick.vx - 4 * Math.random();
}
else
{
this.stick.vx = this.stick.vx (Math.random() - Math.random()) * 4;
} // end else if
if (this.stick.y < 0)
{
this.stick.vy = this.stick.vy 4 * Math.random();
}
else if (this.stick.y > 337)
{
this.stick.vy = this.stick.vy - 4 * Math.random();
}
else
{
this.stick.vy = this.stick.vy (Math.random() - Math.random()) * 4;
} // end else if
this.stick.x = this.stick.x this.stick.vx;
this.stick.y = this.stick.y this.stick.vy;
this.stick.vx = this.stick.vx * 8.000000E-001;
this.stick.vy = this.stick.vy * 8.000000E-001;
this.createNode(random(600), random(337), this.stick.x, this.stick.y, 7 random(13));
};
PoolClass.prototype.createRandomNode = function ()
{
var x = random(600);
var y = random(337);
var dx = this._xmouse;
var dy = this._ymouse;
var ds = 10 random(20);
this.createNode(x, y, dx, dy, ds);
};
PoolClass.prototype.createNode = function (x, y, dx, dy, ds)
{
var nombre = "nd" String(this.depth );
var neo = this.attachMovie("node", nombre, this.depth);
neo._x = x;
neo._y = y;
neo.dx = dx;
neo.dy = dy;
neo.body._xscale = ds;
neo.body._yscale = ds;
};
Object.registerClass("pool", PoolClass);
#endinitclip源文件下載: 粒子特效.rar

分享:Flash8實(shí)現(xiàn)動(dòng)態(tài)星空的通用方法
你想做星空嗎?只需要把本教程的代碼復(fù)制就可以了!先看下效果:制作方法:首先修改文檔屬性:黑色背景、幀頻30fps新建立一個(gè)影片剪輯。在影片剪輯元件中繪制

來(lái)源:閃吧//所屬分類(lèi):Flash教程/更新時(shí)間:2008-03-05
相關(guān)Flash教程