查看: 1537|回复: 2

怎么修改攻击与被攻击的动画顺序.

  [复制链接]
梦石
0
星屑
253
在线时间
574 小时
注册时间
2006-8-25
回帖
772
发表于 2008-3-16 09:08:08 | 显示全部楼层 |阅读模式

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

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

×
我的游戏是先发动攻击敌人,然后再发动自己动画的....怎么改成先动画,再攻击?
版务信息:本贴由楼主自主结贴~

酱油的

梦石
0
星屑
1840
在线时间
2161 小时
注册时间
2007-12-22
回帖
3216

贵宾

发表于 2008-3-16 09:12:44 | 显示全部楼层
Scene_Battle 4
  #--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 4 : 行动方动画)
  #--------------------------------------------------------------------------
  def update_phase4_step4
    @spriteset.visible = false
    # 行动方动画 (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 = 5
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 3 : 对像方动画)
  #--------------------------------------------------------------------------
  def update_phase4_step3
    # 对像方动画
    for target in @target_battlers
      target.animation_id = @animation2_id
      target.animation_hit = (target.damage != "Miss")
    end
    # 限制动画长度、最低 8 帧
    @wait_count = 8
    # 移至步骤 5
    @phase4_step = 4
  end

系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
不做頭像做簽名,看我囧冏有神(多謝山人有情提供 )
回复

使用道具 举报

梦石
0
星屑
253
在线时间
574 小时
注册时间
2006-8-25
回帖
772
 楼主| 发表于 2008-3-16 09:31:21 | 显示全部楼层
是这样吗?好像还是一样....


  #--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 4 : 行动方动画)
  #--------------------------------------------------------------------------
  def update_phase4_step4
    # 行动方动画 (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)
        ##############
        if target.guarding?
          $fangyu = 1
       end
        ##############
       if target.current_action.kind == 0 and target.current_action.basic == 1
           target.setup_battler_ani(target.battler_name.split(/★/)[2])
        else
         target.setup_battler_hurt_ani(0)
        end
      end
      if target.is_a?(Game_Enemy)
        if target.current_action.kind == 0 and target.current_action.basic == 1
          target.setup_battler_ani(target.battler_name.split(/★/)[1])
        else
          target.setup_battler_hurt_ani(0)
        end
      end
      #.......................................................................
    end
    # 对像方动画
    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 : 对像方动画) ★
  #--------------------------------------------------------------------------
  def update_phase4_step3
    # 限制动画长度、最低 8 帧
    @wait_count = 8
    # 移至步骤 5
    @phase4_step = 4
  end
end
class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # ● 取得战斗画面的 X 坐标
  #--------------------------------------------------------------------------
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部