📄 花瓣舞.sqe
字号:
========== Description Part Begin ==========
name = "花瓣舞";
description = "花瓣有规律的舞动。(注意: 最好设置黑色的背景色。)";
version = "1.00";
bin = "DancingFlowers.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,"透明度变化速度","实例的透明度变化速度。");
$nFlowerWidth(EDIT,INT,10,1 1000,"宽","单个花瓣的宽度。");
$nFlowerHeight(EDIT,INT,10,1 1000,"高","单个花瓣的高度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nFrameCount = 3;
nCharacterCount = 4;
nAlphaSpeed = 3;
nFlowerWidth = 100;
nFlowerHeight = 100;
nPosX = c1._x;
nPosY = c1._y;
nWhoRun = 1;
r1._visible = false;
j = 0;
c1._alpha = 0;
function AddAlpha()
{
for(i = 1;i <= nCharacterCount;i++)
{
if(i == nWhoRun)
continue;
if(this["c" + i]._alpha >= 100)
continue;
this["c" + i]._alpha += nAlphaSpeed;
}
}
function fun()
{
AddAlpha();
if(j > 50)
{
j = 0;
nWhoRun++;
if(nWhoRun > nCharacterCount)
nWhoRun = 1;
this["c" + nWhoRun]._alpha = 0;
nPosX = this["c" + nWhoRun]._x;
nPosY = this["c" + nWhoRun]._y;
return ;
}
++j;
x = j*Math.cos(j );
y = j*Math.sin(j );
duplicateMovieClip("r1", "r1"+j, j);
setProperty("r1"+j, _x, x + nPosX);
setProperty("r1"+j, _y, y + nPosY);
setProperty("r1"+j, _width, nFlowerWidth);
setProperty("r1"+j, _height, nFlowerHeight);
}
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 ==========
$"DancingFlowers(rc).swf"("花瓣","旋转的花瓣。(您还可以选择更换其他的资源。)",4);
========== Resource Part End ==========
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -