📄 滚动字幕.sqe
字号:
========== Description Part Begin ==========
name = "滚动字幕";
description = "实例会向上或向下滚动。";
version = "1.00";
bin = "Scrolling.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nStartPosY(EDIT,INT,100,-10000 10000,"Y","实例起始位置的Y值。");
$bUpDown(LIST,INT,1,"向上":1 "向下":0,"方向","控制实例向下滚动或向下滚动。");
$nMoveSpeed(EDIT,INT,3,0 10000,"移动速度","实例的移动速度。");
$nAlphaSpeed(EDIT,INT,2,0 10000,"透明度变化速度","实例的透明度变化速度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 10;
nStartPosY = 200;
bUpDown = true;
nMoveSpeed = 3;
nAlphaSpeed = 2;
bMode = true;
for(i = 1;i <= nCharacterCount;i++)
{
this["c" + i]._y = nStartPosY;
this["c" + i]._alpha = 0;
}
function fun()
{
for(i = 1;i <= nCharacterCount;i++)
{
if(bUpDown)
this["c" + i]._y -= nMoveSpeed;
else
this["c" + i]._y += nMoveSpeed;
if(bMode)
{
this["c" + i]._alpha += nAlphaSpeed;
if( this["c" + i]._alpha > 100)
this["c" + i]._alpha = 100;
}
else
{
this["c" + i]._alpha -= nAlphaSpeed;
if( this["c" + i]._alpha < 0)
this["c" + i]._alpha = 0;
}
}
if( this["c" + nCharacterCount]._alpha == 100)
{
bMode = false;
}
if( this["c" + nCharacterCount]._alpha == 0)
{
bMode = true;
gotoAndPlay(1);
}
}
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 ==========
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -