📄 星光闪耀2.sqe
字号:
========== Description Part Begin ==========
name = "星光闪耀2";
description = "每个实例被滑过的星光点亮。(注意: 最好设置黑色的背景色。)";
version = "1.00";
bin = "Starlight.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nAlphaSpeed(EDIT,INT,5,1 100,"透明度变化速度","实例的透明度变化速度。");
$nMoveSpeed(EDIT,INT,5,1 100,"移动速度","资源的移动速度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 8;
nAlphaSpeed = 5;
nMoveSpeed = 5;
for (i = 1; i <= nCharacterCount ; i++)
{
this["c" + i]._visible = false;
this["c" + i]._alpha = 100;
}
this.r1._x = this.c1._x;
this.r1._y = this.c1._y;
if(this.r1._width < this.c1._height)
{
this.r1._width = this.c1._height;
this.r1._height = this.c1._height;
}
else
{
this.r1._width = this.c1._width;
this.r1._height = this.c1._width;
}
function fun()
{
this.r1._x += nMoveSpeed;
for (i = 1;i <= nCharacterCount; i++)
{
if(this.r1._x > this["c" + i]._x)
{
this["c" + i]._visible = true;
this["c" + i]._alpha -= nAlphaSpeed;
}
}
if(this.r1._x > this["c" + nCharacterCount]._x + this["c" + nCharacterCount]._width )
gotoAndPlay(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 ==========
========== Resource Part Begin ==========
$"star(rc).swf"("星光","闪耀的星光。(您还可以选择更换其他的资源。)",2);
========== Resource Part End ==========
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -