📄 色彩斑斓.sqe
字号:
========== Description Part Begin ==========
name = "色彩斑斓";
description = "每个实例从高处落下时产生出色彩斑斓的轨迹。";
version = "1.00";
bin = "Multi-shadow5.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nRotationSpeed(EDIT,INT,15,1 360,"旋转速度","实例的旋转速度。");
$nRotationCount(EDIT,INT,2,1 100,"旋转次数","实例旋转的次数。旋转到指定次数后,实例将重复这种运动。");
$nAlphaSpeed(EDIT,INT,2,1 100,"透明度变化速度","实例的透明度变化速度。");
$nMoveSpeed(EDIT,INT,3,1 10000,"移动速度","实例的移动速度。");
$nInterval(EDIT,INT,1,1 1000,"时间间隔","前一个实例和后一个实例开始变化时间间隔。");
$bIsChangeColor(LIST,INT,1,"是":1 "否":0,"颜色变化","指定是否改变实例的颜色。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 2;
nAlphaSpeed = 2;
nMoveSpeed = 3;
nRotationSpeed = 15;
nRotationCount = 2;
bIsChangeColor = true;
nInterval = 1;
bIsDown = true;
bStop = false;
nTempInterval = nInterval;
nBegin = 1;
nEnd = 0;
nRotation = 0;
nDeepness = nCharacterCount;
nPosY = new Array(nCharacterCount);
for(i = 1;i <= nCharacterCount;i++)
{
nPosY[i - 1] = this["c" + i]._y;
this["c" + i]._visible = false;
}
function fun()
{
for(i = 1;i <= nCharacterCount;i++)
{
for(n = nBegin;n <= nEnd;n++)
{
this["t" + i + n]._alpha -= nAlphaSpeed;
if(bIsChangeColor)
{
characterColor = new Color(this["t" + i + n]);
characterColor.setRGB(random(0xffffff));
}
if(!bStop)
{
this["t" + i + n]._xscale -= 1;
this["t" + i + n]._yscale -= 1;
}
if(this["t" + i + n]._alpha < 0)
{
if(bStop)
{
if(n == nEnd)
gotoAndPlay(1);
}
ithis["t" + i + n].removeMovieClip();
if(i == nCharacterCount)
{
nBegin++;
}
}
}
}
if(bStop)
{
return ;
}
nTempInterval--;
if(nTempInterval == 0)
{
nEnd++;
for(i = 1;i <= nCharacterCount;i++)
{
if(bIsDown)
{
nPosY[i -1] += nMoveSpeed;
}
else
{
nPosY[i -1] -= nMoveSpeed;
}
this["c" + i].duplicateMovieClip("t" + i + nEnd,nDeepness);
nTemp = i;
nTemp = nEnd;
this["t" + i + nEnd]._y = nPosY[i -1];
this["t" + i + nEnd]._rotation = nRotation;
nDeepness++;
}
nRotation += nRotationSpeed;
if(nRotation > 360 * nRotationCount)
bStop = 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 + -