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

📄 放大2.sqe

📁 flash文档文档文档文档文档文档文档文档文档文档文档文档
💻 SQE
字号:
========== Description Part Begin ==========
name = "放大2";
description = "实例在固定的位置不断放大,直至消失。";
version = "1.00";
bin = "FadingShadow2.bin";
========== Description Part End ==========

========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nSize(EDIT,INT,100,1 1000,"初始大小","特定的值;当实例的大小增加到这个值时,实例的阴影开始出现。");
$nChangeSpeed(EDIT,INT,5,1 1000,"阴影速度","阴影的透明度变化速度。");

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

========== Function Part Begin ==========
nFrameCount = 10;
nCharacterCount = 5;
nSize = 50;
nChangeSpeed = 5;



nChangeSize = 0;
nGhostChangeSize = 0;
	for (i = 1; i <= nCharacterCount; i++)
	{
		this["c" + i]._yscale = 0;
		this["c" + i]._xscale = 0;
		this["c" + i]._alpha = 0;
	}


function again()
{
	gotoAndPlay(2);
}


function fun()
{	
	if(nChangeSize > nSize)
	{
		CopyObject();
		return ;		
	}
	
	nChangeSize += nChangeSpeed;
	for (i = 1; i <= nCharacterCount; i++)
	{
		this["c" + i]._yscale = nChangeSize;
		this["c" + i]._xscale = nChangeSize;
		this["c" + i]._alpha = nChangeSize;
	}
	
	
}


function CopyObject()
{
	
		for(i = nCharacterCount + 1;i <= nCharacterCount * 2;i++)
		{
			this["c" + (i - nCharacterCount)].duplicateMovieClip("c"+i, i);
		}
		for (i = nCharacterCount + 1; i <= nCharacterCount * 2; i++)
		{
			this["c" + i]._yscale +=  nGhostChangeSize;
			this["c" + i]._xscale +=  nGhostChangeSize;
			this["c" + i]._alpha -=  nGhostChangeSize;

		}
		nGhostChangeSize += nChangeSpeed;
	
		if(this["c" + nCharacterCount *2]._alpha < 0)
			gotoAndPlay(1);
}

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