📄 霓虹闪烁1.sqe
字号:
========== Description Part Begin ==========
name = "霓虹闪烁1";
description = "五彩缤纷的实例不断向外扩展,形成霓虹闪烁的效果。";
version = "1.00";
bin = "Multi-shadow2.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,5,1 100,"透明度变化速度","实例的透明度变化速度。");
$nInterval(EDIT,INT,2,1 1000,"时间间隔","前一个实例和后一个实例开始显示的时间间隔。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 8;
nAlphaSpeed = 2;
nScaleSpeed = 4;
nInterval = 8;
nTempInterval = nInterval;
nIndex = 0;
nDepth = nCharacterCount;
bEnd = false;
function fun()
{
for (i = 1;i <= nCharacterCount ; i++)
{
for(n = 1;n <= nIndex;n++)
{
this["t" + i + n]._xscale += nScaleSpeed;
this["t" + i + n]._yscale += nScaleSpeed;
this["t" + i + n]._alpha -= nAlphaSpeed;
tempColor = new Color(this["t" + i + n]);
col = random(0xffffff);
tempColor.setRGB(col);
}
}
if(bEnd)
{
if(this["t" + nCharacterCount + nIndex]._alpha < 0)
{
for (i = 1;i <= nCharacterCount ; i++)
{
for(n = 1;n <= nIndex;n++)
{
this["t" + i + n].removeMovieClip();
}
}
gotoAndPlay(1);
}
return ;
}
nTempInterval--;
if(nTempInterval == 0)
{
nIndex++;
for (i = 1;i <= nCharacterCount ; i++)
{
nDepth++;
this["c" + i].duplicateMovieClip("t"+ i + nIndex, nDepth);
}
if(nIndex >= 10)
{
bEnd = true;
}
nTempInterval = nInterval;
}
}
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 + -