?? 洋蔥皮.sqe
字號:
========== Description Part Begin ==========
name = "洋蔥皮";
description = "使實例產生象洋蔥皮那樣被剝落的效果。";
version = "1.00";
bin = "FallDown.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"實例總數","指的是使用了該特效的實例的總數。這個值是由影片里所選中的實例數決定的,在這里不能設置。");
$nFrameCount(EDIT,INT,3,3 3,"總幀數","指的是含有動作代碼的總幀數。特效播放的總幀數可能比動作代碼的幀數多。");
$nAlphaSpeed(EDIT,INT,10,0 10000,"透明度變化速度","實例的透明度變化速度。");
$nScaleSpeed(EDIT,INT,10,0 10000,"縮放速度","實例的縮放速度。");
$nRotationSpeed(EDIT,INT,20,0 10000,"旋轉速度","實例的旋轉速度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 1;
nFrameCount = 3;
nAlphaSpeed = 10;
nScaleSpeed = 10;
nRotationSpeed = 20;
nMoveSpeed = 1;
nWho = 0;
Who();
function Who()
{
for(;;)
{
nTemp = random(nCharacterCount + 1);
if(nCharacterCount == 1)
{
if(nTemp != 0)
break;
}
else
if(nTemp != 0 && nWho != nTemp)
break;
}
nWho = nTemp;
this["c" + nWho]._alpha = 50;
this["c" + nWho].duplicateMovieClip("cc" + nWho,nWho);
this["cc" + nWho]._alpha = 80;
}
function again()
{
gotoAndPlay(2);
}
function radiation()
{
if(this["cc" + nWho]._alpha < 0)
{
nMoveSpeed = 1;
Who();
}
this["cc" + nWho]._alpha -= nAlphaSpeed;
this["c" + nWho]._alpha += nAlphaSpeed;
}
function fun()
{
if(nMoveSpeed >= 20)
{
radiation();
return ;
}
this["cc" + nWho]._xscale += nScaleSpeed;
this["cc" + nWho]._yscale += nScaleSpeed;
this["cc" + nWho]._rotation += nRotationSpeed;
this["cc" + nWho]._y += nMoveSpeed++;
}
========== Function Part End ==========
========== Frame Part Begin ==========
$frame(fun,1,-1,"fun");
$frame(fun,2,-1,"fun");
$frame(again,3,-1,"again");
========== Frame Part End ==========
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -