查看: 1340|回复: 1

[已经解决] (战斗系统)怎么让我方动画和对象方动画同时播放?

  [复制链接]
梦石
0
星屑
200
在线时间
2 小时
注册时间
2009-11-14
回帖
0
发表于 2009-12-19 17:18:35 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
做游戏要用,,,,拜托,,,,,
梦石
0
星屑
55
在线时间
5 小时
注册时间
2009-4-11
回帖
110
发表于 2009-12-20 09:06:30 | 显示全部楼层
在Scene_Battle4中 第410行:
你会看到下面这一段
# 对像方动画
    for target in @target_battlers
      target.animation_id = @animation2_id
      target.animation_hit = (target.damage != "Miss")
    end

   把他剪切到 392行中
#--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 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 = 5
  end
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部