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

📄 洋葱皮.sqe

📁 flash文档文档文档文档文档文档文档文档文档文档文档文档
💻 SQE
字号:
========== Description Part Begin ==========
name = "洋葱皮";
description = "使实例产生象洋葱皮那样被剥落的效果。";
version = "1.00";
bin = "FallDown.bin";
========== Description Part End ==========

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


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

========== Function Part Begin ==========
nCharacterCount = 1;
nFrameCount = 3;

nAlphaSpeed = 10;
nScaleSpeed = 10;
nRotationSpeed = 20;


nMoveSpeed = 1;
nWho = 0;
Who();
function Who()
{
	for(;;)
	{
		nTemp = random(nCharacterCount + 1);
		if(nCharacterCount == 1)
		{			
			if(nTemp != 0)
				break;
		
		}
		else
			if(nTemp != 0 && nWho != nTemp)
				break;
	
		
	}
	
	nWho = nTemp;
	this["c" + nWho]._alpha = 50;
	this["c" + nWho].duplicateMovieClip("cc" + nWho,nWho);
	this["cc" + nWho]._alpha = 80;
	
}


function again()
{
	gotoAndPlay(2);
}


function radiation()
{
	if(this["cc" + nWho]._alpha < 0)
	{
		nMoveSpeed = 1;
		Who();
	}
	
	this["cc" + nWho]._alpha -= nAlphaSpeed;
	this["c" + nWho]._alpha += nAlphaSpeed;
	

}

function fun()
{
	if(nMoveSpeed >= 20)
	{
		radiation();
		return ;
	}
	
	this["cc" + nWho]._xscale += nScaleSpeed;
	this["cc" + nWho]._yscale += nScaleSpeed;
	this["cc" + nWho]._rotation += nRotationSpeed;
	this["cc" + nWho]._y += nMoveSpeed++;
	
}

========== 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 + -