赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 18845 |
最后登录 | 2021-2-21 |
在线时间 | 1 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 1 小时
- 注册时间
- 2005-11-16
- 帖子
- 40
|
4楼

楼主 |
发表于 2007-5-31 20:50:56
|
只看该作者
楼上的第一种方法整个动画显示都等待延时了,第二种方法貌似没反映
偶似乎是脚本白痴直接贴出脚本吧:
#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 3 : 行动方动画)
#--------------------------------------------------------------------------
def update_phase4_step3
# 等待10秒
# 行动方动画 (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")
if target.is_a?(Game_Actor)
target.battler_name = target.battler_name.split(/_/)[0]
if target.damage.to_i <= 0
target.battler_name = target.battler_name.split(/_/)[0]
elsif (target.current_action.kind == 0 and target.current_action.basic == 1) or target.damage == "Miss"
target.battler_name = target.battler_name + "_defend" #防御
else
target.battler_name = target.battler_name + "_ad" #挨打
end
end
end
# 限制动画长度、最低 8 帧
@wait_count = 8
# 移至步骤 5
@phase4_step = 5
end
#=====================================================================
怎么加等待可以把挨打的动作晚于攻击动作一段时间,麻烦大侠们多多指点,谢谢了~~ |
|