| 
 
| 赞 | 0 |  
| VIP | 0 |  
| 好人卡 | 0 |  
| 积分 | 2 |  
| 经验 | 11504 |  
| 最后登录 | 2018-10-25 |  
| 在线时间 | 230 小时 |  
 Lv1.梦旅人 
	梦石0 星屑155 在线时间230 小时注册时间2009-7-2帖子204 | 
| 
本帖最后由 晴. 于 2010-11-16 20:28 编辑
x
加入我们,或者,欢迎回来。您需要 登录 才可以下载或查看,没有帐号?注册会员  
 下面这段代码 动画对象是被攻击目标
 我想改成攻击者
 要怎么定义。要改几处地方?、、、谢谢了
 
 
 
 def display_normal_animation(targets, animation_id, mirror = false)
 animation = $data_animations[animation_id]
 if animation != nil
 to_screen = (animation.position == 3)       # 判断位置是否为画面
 for target in targets.uniq
 target.animation_id = animation_id
 target.animation_mirror = mirror
 wait(20, true) unless to_screen           # 单体,等待
 end
 wait(20, true) if to_screen                 # 全体,等待
 end
 end
 
 
 
 # ● 显示攻击动画
 #     targets : 目标数组
 #    敌人的场合,播放「敌人普通攻击」音效和等待。
 #    角色的场合,则包含双刀派(将左手武器动画翻转作为右手武器动画)。
 #--------------------------------------------------------------------------
 def display_attack_animation(targets)
 if @active_battler.is_a?(Game_Enemy)
 Sound.play_enemy_attack
 wait(15, true)
 else
 aid1 = @active_battler.atk_animation_id
 aid2 = @active_battler.atk_animation_id2
 display_normal_animation(targets, aid1, false)
 display_normal_animation(targets, aid2, true)
 end
 wait_for_animation
 end
 | 
 |