📄 电波.sqe
字号:
========== Description Part Begin ==========
name = "电波";
description = "实例的大小有规律的变化。";
version = "1.00";
bin = "ElectronicWave.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nSpeed(EDIT,INT,10,1 10000,"速度","控制改变实例大小的速度。");
$nSizeMax(EDIT,INT,400,1 10000,"最大值","实例被缩放的最大值。");
$nSizeMin(EDIT,INT,100,1 10000,"最小值","实例被缩放的最小值。");
$nInterval(EDIT,INT,6,1 10000,"时间间隔","前一个实例和后一个实例开始变化时间间隔。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 8;
nSpeed = 10;
nSizeMax = 400;
nSizeMin = 100;
nInterval = 6;
nIsRun = new Array(nCharacterCount);
nMode = new Array(nCharacterCount);
for (i = 1; nCharacterCount >= i; i++)
{
this["c" + i]._alpha = 100;
this["c" + i]._rotation = 0;
//this["c" + i]._xscale = 100;
//this["c" + i]._yscale = 100;
if(i == 1)
nIsRun[0] = nInterval;
else
{
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] += nInterval ;
}
nMode[i - 1] = true;
}
function fun()
{
for (i = 1; nCharacterCount >= i; i++)
{
if (nIsRun[i - 1] < 0)
{
if(nMode[i - 1])
{
this["c" + i]._yscale += nSpeed;
if(this["c" + i]._yscale >= nSizeMax)
nMode[i -1] = false;
}
else
{
this["c" + i]._yscale -= nSpeed;
if(this["c" + i]._yscale <= nSizeMin)
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 + -