赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 4546 |
最后登录 | 2013-5-16 |
在线时间 | 1 小时 |
Lv1.梦旅人 贵宾
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 1 小时
- 注册时间
- 2006-1-28
- 帖子
- 262
|
同真·ZERO所说.
站上的下载没有问题可以下的...
横版的话要注意做好动画- -
或者可以参考部分横版解密游戏的方法...比如黑剑|||
------------贴出来----------
打开脚本编辑器,找到Scene_Battle 4,拖拉到390-410行的位置,能够看到如下内容:
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 3 : 行动方动画)
#--------------------------------------------------------------------------
def update_phase4_step3
# 行动方动画 (ID 为 0 的情况下是白色闪烁)
if @animation1_id == 0
@active_battler.white_flash = true
else
@active_battler.animation_id = @animation1_id
@active_battler.animation_hit = true
end
# 移至步骤 4
@phase4_step = 4
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画)
#--------------------------------------------------------------------------
def update_phase4_step4
# 对像方动画
for target in @target_battlers
target.animation_id = @animation2_id
target.animation_hit = (target.damage != "Miss")
end
# 限制动画长度、最低 8 帧
@wait_count = 8
# 移至步骤 5
@phase4_step = 5
end
这个是什么意思呢?就是说,战斗显示动画的时候,首先运行“刷新画面 (主回合步骤 3 : 行动方动画)
”这里的内容,然后运行“刷新画面 (主回合步骤 4 : 对像方动画)”这里的内容。也就是先行动方动画,后对象动画。这两者之间有一道鸿沟,不可能同时显示两者动画。
所以呢~想一个简单办法:把update_phase4_step4定义的for循环内容(也就是显示挨打动画的部分)剪切到update_phase4_step3里面,这样,就是同时显示了。变为如下:
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 3 : 行动方动画)
#--------------------------------------------------------------------------
def update_phase4_step3
# 行动方动画 (ID 为 0 的情况下是白色闪烁)
if @animation1_id == 0
@active_battler.white_flash = true
else
@active_battler.animation_id = @animation1_id
@active_battler.animation_hit = true
end
# 对像方动画
for target in @target_battlers
target.animation_id = @animation2_id
target.animation_hit = (target.damage != "Miss")
end
# 移至步骤 4
@phase4_step = 4
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画)
#--------------------------------------------------------------------------
def update_phase4_step4
# 限制动画长度、最低 8 帧
@wait_count = 8
# 移至步骤 5
@phase4_step = 5
end
OK,完成了。整个齐时战斗脚本其实就是修改了这一点点。
用法:
最简单的学习方法你可以参考黑暗圣剑传说。主要说起来,就是要计算好整个动画全长多少帧,包括角色出击,打击敌人,角色回来。假设比如说,60帧,其中10帧角色出击,40帧殴打敌人,10帧回来。
那么,在动画中设置如下:
1:角色攻击动画
2:角色击中动画——————两段,当然了
两段动画都是60帧,其中1:前10帧:角色往前跑步动画;11-50帧:对象消失(在声音设置那里);51-60帧:角色返回。2:20-25帧:角色冲过来出现在面前,25-45帧:角色攻击乱舞,45-50帧:角色往回跑。
这样就可以了。如果你是真正自己做动画的话,你能听明白的。
最后说一句:真想制作属于自己的战斗(也就是经常说的自战),那是需要下苦功夫的。用现成脚本肯定不行。不过不管怎样,以上内容如果学会,至少,你的自战的动画部分已经绝对没有问题了
|
|