Project1
标题:
如何在发动法术时。。。。
[打印本页]
作者:
后汉王刘蜀
时间:
2008-7-29 05:22
提示:
作者被禁止或删除 内容自动屏蔽
作者:
暮铃·邪雾
时间:
2008-7-29 05:33
提示:
作者被禁止或删除 内容自动屏蔽
作者:
后汉王刘蜀
时间:
2008-7-29 05:43
提示:
作者被禁止或删除 内容自动屏蔽
作者:
dbshy
时间:
2008-7-29 07:01
animation家一个@_animation_sprites_ENEMY
生成与@_animation_sprites相同
update_animation 中同理加上UPDATE
然后animation_set_sprites该位置或者先条位置
作者:
凌冰
时间:
2008-7-29 07:07
class Scene_Battle
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
# 对像方动画
unless @target_battlers.include?(@active_battler)
for target in @target_battlers
target.animation_id = @animation2_id
target.animation_hit = (target.damage != "Miss")
end
end
# 移至步骤 4
@phase4_step = 4
end
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画)
#--------------------------------------------------------------------------
def update_phase4_step4
if @target_battlers.include?(@active_battler)
for target in @target_battlers
target.animation_id = @animation2_id
target.animation_hit = (target.damage != "Miss")
end
end
# 限制动画长度、最低 8 帧
@wait_count = 8
# 移至步骤 5
@phase4_step = 5
end
end
复制代码
以下引用
后汉王刘蜀于2008-7-28 21:22:03
的发言:
如何在发动法术时在发动法术的人身上显示动画?而敌人也显示那个法术的动画
作者:
后汉王刘蜀
时间:
2008-7-29 08:40
提示:
作者被禁止或删除 内容自动屏蔽
作者:
lhbadsl
时间:
2008-7-29 11:26
老兄,你不会连66的齐时都不会吧。。。。。在Scene_Battle4中找到def update_phase4_step3,def update_phase4_step4两个函数,把它们改为像ls写的那样,如果脚本不好的话。。。。直接粘贴替换这两个函数就可以了。原理是本身def update_phase4_step3显示攻击方动画,def update_phase4_step4显示目标方动画,ls的代码是将def update_phase4_step4的内容搬到def update_phase4_step3这样两方的动画时间就相同了(就是你要的齐时效果),还不懂的话。在主站搜索“齐时战斗”66有详细的教程。。。。。看了基本就会了 [LINE]1,#dddddd[/LINE]
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
[LINE]1,#dddddd[/LINE]
版主对此帖的评论:『说话注意一下方式方法』,积分『-0』。这些被扣积分的一半会用于对本帖正确答案的悬赏。
作者:
dbshy
时间:
2008-7-29 18:53
呃,我想复杂了,去改底层
LZ去搜齐时战斗
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1