📄 消失.sqe
字号:
========== Description Part Begin ==========
name = "消失";
description = "实例越变越小直到在远处消失,过了一会又再次出现。";
version = "1.00";
bin = "Disappear.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nScaleSpeed(EDIT,INT,10,1 100,"缩放速度","实例的缩放速度。");
$nAlphaSpeed(EDIT,INT,3,1 100,"透明度变化速度","实例的透明度变化速度。");
$bDirection(LIST,INT,0,"左":1 "右":0,"方向","控制实例从左边开始变化,或从右边开始变化。");
$nInterval(EDIT,INT,5,1 10000,"时间间隔","前一个实例和后一个实例开始变化的时间间隔。");
$nMaxScale(EDIT,INT,200,100 10000,"最大值","实例缩放的最大值。");
$nMinScale(EDIT,INT,0,0 10000,"最小值","实例缩放的最小值。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 3;
nAlphaSpeed = 3;
nScaleSpeed = 10;
nInterval = 5;
bDirection = 0;
nMaxScale = 200;
nMinScale = 0;
nCharacter_x = new Array(nCharacterCount);
nCharacter_y = new Array(nCharacterCount);
nIsRun = new Array(nCharacterCount);
nMode = new Array(nCharacterCount);
nWhoRun = 1;
for (i = 1; i <= nCharacterCount; i++)
{
this["c" + i]._alpha = 0;
this["c" + i]._xscale = 200;
this["c" + i]._yscale = 200;
nCharacter_x[i - 1] = this["c" + i]._x;
nCharacter_y[i - 1] = this["c" + i]._y;
nMode[i -1] = true;
if(bDirection)
{
if(i == 1)
nIsRun[0] = 0;
else
{
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] += nInterval ;
}
}
else
{
if(i == 1)
nIsRun[nCharacterCount -1] = 0;
else
{
nIsRun[nCharacterCount - i] = nIsRun[nCharacterCount - (i - 1) ];
nIsRun[nCharacterCount - i] += nInterval ;
}
}
}
function fun()
{
for (i = 1; i <= nCharacterCount; i++)
{
if (nIsRun[i - 1] <= 0)
{
if(nMode[i -1])
{
this["c" + i]._xscale = this["c" + i]._xscale - nScaleSpeed;
this["c" + i]._yscale = this["c" + i]._yscale - nScaleSpeed;
this["c" + i]._alpha = this["c" + i]._alpha + nAlphaSpeed;
if(this["c" + i]._xscale < nMinScale)
{
this["c" + i]._xscale = 0;
this["c" + i]._yscale = 0;
}
if(this["c" + i]._alpha > 100)
nMode[i -1] = false;
}
else
{
this["c" + i]._xscale = this["c" + i]._xscale + nScaleSpeed;
this["c" + i]._yscale = this["c" + i]._yscale + nScaleSpeed;
this["c" + i]._alpha = this["c" + i]._alpha - nAlphaSpeed;
if(this["c" + i]._xscale > nMaxScale)
{
this["c" + i]._xscale = nMaxScale;
this["c" + i]._yscale = nMaxScale;
}
if(this["c" + i]._alpha < 0)
nMode[i -1] = true;
}
}
else
nIsRun[i -1]--;
}
}
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 + -