设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
12
返回列表 发新帖
楼主: chengzhuo5
打印 上一主题 下一主题

[已经解决] 请问如何做到动画结束后在造成伤害?

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
82 小时
注册时间
2013-3-17
帖子
63
11
 楼主| 发表于 2013-7-18 12:00:53 手机端发表。 | 只看该作者
a86533024 发表于 2013-7-18 03:17  你脚本问题把 我这怎么弄都是在最后显示伤害阿   

那个叫做mog
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
82 小时
注册时间
2013-3-17
帖子
63
12
 楼主| 发表于 2013-7-18 16:01:04 | 只看该作者
原野清平 发表于 2013-7-18 10:28
按楼主要求试伤害在动画结束后显示。
但是仅仅调了伤害显示,敌人还是会在刚开始显示动画就挂掉。
有问题的 ...

你改了哪里?

点评

VE | Damage Pop 470行  发表于 2013-7-18 16:08
回复

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
82 小时
注册时间
2013-3-17
帖子
63
13
 楼主| 发表于 2013-7-18 16:54:19 | 只看该作者
本帖最后由 chengzhuo5 于 2013-7-19 18:17 编辑

是Scene_Battle的问题。
修复了的:
RUBY 代码复制
  1. #插入到Animated Battle之后,main之前。
  2. class Scene_Battle < Scene_Base
  3.   #--------------------------------------------------------------------------
  4.   # ● 戦闘行動の実行
  5.   #--------------------------------------------------------------------------
  6.   def execute_action
  7.     @subject.sprite_effect_type = :whiten
  8.     use_item
  9.     @log_window.wait_and_clear
  10.   end
  11.   #--------------------------------------------------------------------------
  12.   # ● スキル/アイテムの使用
  13.   #--------------------------------------------------------------------------
  14.   def use_item
  15.     item = @subject.current_action.item
  16.     @log_window.display_use_item(@subject, item)
  17.     @subject.poses.action_pose(item) #视频
  18.     @subject.use_item(item)
  19.     refresh_status
  20.     targets = @subject.current_action.make_targets.compact
  21.     show_animation(targets, item.animation_id)
  22.     targets.each {|target| item.repeats.times { invoke_item(target, item) } }
  23.   end
  24.   #--------------------------------------------------------------------------
  25.   # ● アニメーションの表示
  26.   #     targets      : 対象者の配列
  27.   #     animation_id : アニメーション ID(-1: 通常攻撃と同じ)
  28.   #--------------------------------------------------------------------------
  29. #等待
  30.   def show_animation(targets, animation_id)
  31.     if animation_id < 0
  32.       show_attack_animation(targets)
  33.     else
  34.       show_normal_animation(targets, animation_id)
  35.     end
  36.     @log_window.wait
  37.     wait_for_animation
  38.   end
  39. #
  40. end

点评

懂了  发表于 2013-7-18 17:43
回复

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-6-9 16:25

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表