description = "The characters become smaller and smaller, disappear in the distance for a while, but reappear in the end.";
version = "1.00";
bin = "Disappear.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"Total Characters ","The total characters using the special effect. The value is defined by the selected characters in the movie, but can not be changed in the property box.");
$nFrameCount(EDIT,INT,3,3 3,"Total Frames","It indicates the total frames of actions. The total frames of the effect is probably more than it.");
$nScaleSpeed(EDIT,INT,10,1 100,"Scaling Speed","To control the speed of character scaling.");
$nAlphaSpeed(EDIT,INT,3,1 100,"Fading Speed","To control the speed of character fading.");
$bDirection(LIST,INT,0,"Left":1 "Right":0,"Direction","To control the change of character to start from the left side or from the right one");
$nInterval(EDIT,INT,5,1 10000,"Interval"," The time difference between the former character and the latter one beginning to change.");
$nMaxScale(EDIT,INT,200,100 10000,"Maxi Scaling","The maximun value of character scaling.");
$nMinScale(EDIT,INT,0,0 10000,"Mini Scaling","The minimum value of character scaling.");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 3;
nAlphaSpeed = 3;
nScaleSpeed = 10;
nInterval = 5;
bDirection = 0;
nMaxScale = 200;
nMinScale = 0;
nCharacter_x = new Array(nCharacterCount);
nCharacter_y = new Array(nCharacterCount);
nIsRun = new Array(nCharacterCount);
nMode = new Array(nCharacterCount);
nWhoRun = 1;
for (i = 1; i <= nCharacterCount; i++)
{
this["c" + i]._alpha = 0;
this["c" + i]._xscale = 200;
this["c" + i]._yscale = 200;
nCharacter_x[i - 1] = this["c" + i]._x;
nCharacter_y[i - 1] = this["c" + i]._y;
nMode[i -1] = true;
if(bDirection)
{
if(i == 1)
nIsRun[0] = 0;
else
{
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] += nInterval ;
}
}
else
{
if(i == 1)
nIsRun[nCharacterCount -1] = 0;
else
{
nIsRun[nCharacterCount - i] = nIsRun[nCharacterCount - (i - 1) ];