📄 黑客帝国.sqe
字号:
========== Description Part Begin ==========
name = "黑客帝国";
description = "模仿影片《黑客帝国》中的数字世界的场景。(注意:为了达到更好的效果,最好设置黑色的背景色,黄色的文字。)";
version = "1.00";
bin = "Matrix.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nAlphaSpeed(EDIT,INT,3,1 100,"透明度变化速度","实例的透明度变化速度。");
$nMoveSpeed(EDIT,INT,8,1 100,"移动速度","实例的移动速度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 3;
nMoveSpeed = 8;
nAlphaSpeed = 3;
i = nCharacterCount;
i = i+1;
max = 100;
function again()
{
if (i<max)
{
gotoAndPlay(2);
}
else
{
for(n = nCharacterCount + 1;n <= max;n++)
{
this["c" + n]._visible = false;
removeMovieClip(n);
}
gotoAndPlay(1);
}
}
for(n = 1;n <= nCharacterCount;n++)
{
this["c" + n]._visible = false;
}
function fun()
{
i = i+1;
duplicateMovieClip("c" + random(nCharacterCount + 1), "c" + i, i);
this["c" + i]._y = 0;
for(n = nCharacterCount + 1;n <= i;n++)
{
this["c" + n]._xscale = random(100);
this["c" + n]._yscale = this["c" + n]._xscale;
this["c" + n]._y += nMoveSpeed;
this["c" + n]._alpha -= nAlphaSpeed;
}
}
========== 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 + -