📄 放大.sqe
字号:
========== Description Part Begin ==========
name = "放大";
description = "每个实例移动时不断放大。";
version = "1.00";
bin = "FadingShadow.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nSpeed(EDIT,INT,5,1 10000,"移动速度","实例的移动速度。");
$nGhostChangeSpeed(EDIT,INT,5,1 10000,"阴影速度","实例阴影的改变速度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nFrameCount = 10;
nCharacterCount = 4;
nSpeed = 10;
nGhostChangeSpeed = 1;
nSize = 0;
for (i = 1; i <= nCharacterCount; i++)
{
this["c" + i]._yscale = 0;
this["c" + i]._xscale = 0;
this["c" + i]._alpha = 0;
}
function fun()
{
if(nSize > 100)
{
CopyObject();
return ;
}
nSize += nSpeed;
for(i = nCharacterCount + 1;i <= nCharacterCount * 2;i++)
{
this["c" + (i - nCharacterCount)].duplicateMovieClip("c"+i, i);
}
for (i = 1; i <= nCharacterCount; i++)
{
this["c" + i]._yscale = nSize;
this["c" + i]._xscale = nSize;
this["c" + i]._y = nSize;
this["c" + i]._alpha = nSize;
}
}
function again()
{
gotoAndPlay(2);
}
function CopyObject()
{
for(i = nCharacterCount + 1;i <= nCharacterCount * 2;i++)
{
this["c" + (i - nCharacterCount)].duplicateMovieClip("c"+i, i);
}
for (i = nCharacterCount + 1; i <= nCharacterCount * 2; i++)
{
this["c" + i]._yscale += nGhostChangeSpeed;
this["c" + i]._xscale += nGhostChangeSpeed;
this["c" + i]._alpha -= nGhostChangeSpeed;
}
nGhostChangeSpeed += nSpeed;
if(nGhostChangeSpeed > 100)
gotoAndPlay(1);
}
========== 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 + -