⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 梦幻世界.sqe

📁 flash文档文档文档文档文档文档文档文档文档文档文档文档
💻 SQE
字号:
========== Description Part Begin ==========
name = "梦幻世界";
description = "梦幻世界。(注意: 最好设置黑色的背景色)";
version = "1.00";
bin = "ColorfulWorld.bin";
========== Description Part End ==========

========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nAlphaSpeed(EDIT,INT,2,0 1000,"透明度变化速度","实例的透明度变化速度。");
$nScaleSpeed(EDIT,INT,1,0 1000,"缩放速度","实例的缩放速度。");
$nMax(EDIT,INT,80,0 1000,"所用资源","所使用的资源的总和。");

$nStartPosX(EDIT,INT,0,-10000 10000,"X","资源元素初始位置的X值。");
$nStartPosY(EDIT,INT,0,-10000 10000,"Y","资源元素初始位置的X值。");


$nSceneWidth(EDIT,INT,600,0 1000,"宽","资源元素活动范围的宽度。");
$nSceneHeight(EDIT,INT,600,0 1000,"高","资源元素活动范围的宽度。");

$nResourceWidth(EDIT,INT,80,0 1000,"宽(资源)","资源的宽度。");
$nResourceHeight(EDIT,INT,80,0 1000,"高(资源)","资源的高度。");



========== Parameter Part End ==========

========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 3;
nAlphaSpeed = 2;
nScaleSpeed = 1;
nMax = 80;

nStartPosX = 0;
nStartPosY = 0;

nSceneHeight = 600;
nSceneWidth = 600;
nResourceWidth = 80;
nResourceHeight = 80;



r1._width = nResourceWidth;
r1._height = nResourceHeight;

n = 0;
nIsRun = new Array(nCharacterCount);
bMode = new Array(nCharacterCount);


for (i = 1; nCharacterCount >= i; i++)
{
	this["c" + i]._alpha = 0;
	bMode[i - 1] = true;
	nIsRun[i - 1] = random(nCharacterCount *4);
}



function again()
{
	gotoAndPlay(2);
}


function fun()
{
	if (n > nMax) 
	{
		n = 0;
	}
	duplicateMovieClip("r1", "r1" + n, n);
	setProperty("r1" + n, _x, nStartPosX + random( nSceneWidth ));
	setProperty("r1" + n, _y, nStartPosY + random( nSceneHeight ));
	col = Random(0xafafaf)+0x999999;
	xzcol = new Color("r1" + n);
	xzcol.setRGB( col );
	n ++;




	for (i = 1;i <= nCharacterCount; i++)
	{
		nIsRun[i - 1] -= 1;
		if(nIsRun[i - 1] <  0)
		{
			if(bMode[i - 1])
			{
				this["c" + i]._alpha += nAlphaSpeed;
				this["c" + i]._xscale += nScaleSpeed;
				this["c" + i]._yscale += nScaleSpeed;
				if(this["c" + i]._alpha > 100)
				{
					bMode[i -1] = false;
					this["c" + i]._alpha = 100;
				}
			}
			else
			{
				this["c" + i]._alpha -= nAlphaSpeed;
				this["c" + i]._xscale -= nScaleSpeed;
				this["c" + i]._yscale -= nScaleSpeed;

				if(this["c" + i]._alpha < 0)
				{
					bMode[i -1] = true;
					this["c" + i]._alpha = 0;
					if(this["c" + i]._alpha == 0)
					{
						this["c" + i]._xscale = 100;
						this["c" + i]._yscale = 100;

						nIsRun[i - 1] = random(nCharacterCount *4);
					}
				}
			}
							
		}	
	}
  
} 

========== 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 ==========
$"ColorfulWorld(rc).swf"("圆形","多彩的圆形。(您还可以选择更换其他的资源。)",2);
========== Resource Part End ==========




⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -