查看: 2469|回复: 2

[已经解决] 怎么同时播放战斗动画

[复制链接]
梦石
0
星屑
4825
在线时间
766 小时
注册时间
2006-9-25
回帖
47
发表于 2014-2-12 11:48:24 | 显示全部楼层 |阅读模式

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

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

×
攻击方和对象方的动画怎么同时播放?.
dsdddsds

薄凉看客

梦石
0
星屑
50
在线时间
1269 小时
注册时间
2010-6-20
回帖
1223
发表于 2014-2-12 11:51:01 | 显示全部楼层
  1. #==============================================================================
  2. # ■ Scene_Battle (分割定义 4)
  3. #------------------------------------------------------------------------------
  4. #  处理战斗画面的类。
  5. #==============================================================================

  6. class Scene_Battle
  7.   #--------------------------------------------------------------------------
  8.   # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  9.   #--------------------------------------------------------------------------
  10.   def update_phase4_step3
  11.     # 行动方动画 (ID 为 0 的情况下是白色闪烁)
  12.     if @animation1_id == 0
  13.       @active_battler.white_flash = true
  14.     else
  15.       @active_battler.animation_id = @animation1_id
  16.       @active_battler.animation_hit = true
  17.     end
  18.     # 对像方动画
  19.     for target in @target_battlers
  20.       target.animation_id = @animation2_id
  21.       target.animation_hit = (target.damage != "Miss")
  22.     end
  23.     # 限制动画长度、最低 8 帧
  24.     @wait_count = 8
  25.     # 移至步骤 5
  26.     @phase4_step = 5
  27.   end
  28.   #--------------------------------------------------------------------------
  29.   # ● 刷新画面 (主回合步骤 4 : 对像方动画)
  30.   #--------------------------------------------------------------------------
  31.   def update_phase4_step4
  32.   end
  33. end
复制代码

评分

参与人数 1星屑 +120 收起 理由
myownroc + 120 认可答案

查看全部评分

回复

使用道具 举报

梦石
0
星屑
4825
在线时间
766 小时
注册时间
2006-9-25
回帖
47
 楼主| 发表于 2014-2-12 12:45:03 | 显示全部楼层
谢谢
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部