📄 霓虹闪烁2.sqe
字号:
========== Description Part Begin ==========
name = "霓虹闪烁2";
description = "五彩缤纷的实例和被复制的实例渐渐显示,向外扩展,直到消失。";
version = "1.00";
bin = "Multi-shadow3.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nScaleSpeed(EDIT,INT,5,1 100,"缩放速度","实例的缩放速度。");
$nAlphaSpeed(EDIT,INT,3,1 100,"透明度变化速度","实例的透明度变化速度。");
$nCopyInterval(EDIT,INT,8,1 1000,"复制实例的时间间隔","实例和被复制的实例显示的时间间隔。");
$nNextInterval(EDIT,INT,3,1 1000,"实例时间间隔","前一个实例和后一个实例开始变幻的时间间隔。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 8;
nAlphaSpeed = 3;
nScaleSpeed = 5;
nCopyInterval = 8;
nNextInterval = 3;
nTempNextInterval = nNextInterval;
nTempCopyInterval = new Array( nCharacterCount );
nIndex = new Array( nCharacterCount );
nBegin = new Array( nCharacterCount );
nDepth = nCharacterCount;
nWhoRun = 1;
for(i = 1;i <= nCharacterCount;i++)
{
nTempCopyInterval[i] = nCopyInterval;
nIndex[ i ] = 1;
nBegin[ i ] = 1;
this["c" + i]._visible = false;
}
function fun()
{
nTempNextInterval--;
if(nTempNextInterval == 0)
{
nWhoRun++;
if(nWhoRun > nCharacterCount)
nWhoRun = nCharacterCount;
nTempNextInterval = nNextInterval;
}
for ( i = 1;i <= nWhoRun; i++)
{
for(n = nBegin[i];n <= nIndex[i];n++)
{
this["t" + i + n]._xscale += nScaleSpeed;
this["t" + i + n]._yscale += nScaleSpeed;
this["t" + i + n]._alpha -= nAlphaSpeed;
if(this["t" + i + n]._alpha < 0)
{
this["t" + i + n].removeMovieClip();
nBegin[i]++;
if(i == nCharacterCount && n == 5)
gotoAndPlay(1);
}
tempColor = new Color(this["t" + i + n]);
col = random(0xffffff);
tempColor.setRGB(col);
}
}
for (i = 1;i <= nWhoRun; i++)
{
nTempCopyInterval[i]--;
if(nTempCopyInterval[i] == 0)
{
if(nIndex[i] >= 5)
break;
nDepth++;
nIndex[i]++;
this["c" + i].duplicateMovieClip("t"+ i + nIndex[i], nDepth);
nTempCopyInterval[i] = nCopyInterval;
}
}
}
function again()
{
gotoAndPlay(2);
}
========== 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 + -