| 赞 | 2 |
| VIP | |
| 好人卡 | |
| 积分 | 3 |
| 经验 | |
| 最后登录 | 2019-5-20 |
| 在线时间 | 574 小时 |
- 梦石
- 0
- 星屑
- 253
- 在线时间
- 574 小时
- 注册时间
- 2006-8-25
- 回帖
- 772
|
发表于 2017-7-18 07:52:52
|
显示全部楼层
本帖最后由 jhhuang 于 2017-7-18 07:55 编辑
看的懂脚本就自己修改吧:
abs_wait_short unless animation.to_screen?
- #--------------------------------------------------------------------------
- # ● 显示普通动画
- # targets : 目标的数组
- # animation_id : 动画ID
- # mirror : 左右反转
- #--------------------------------------------------------------------------
- def show_normal_animation(targets, animation_id, mirror = false)
- animation = $data_animations[animation_id]
- if animation
- targets.each do |target|
- target.animation_id = animation_id
- target.animation_mirror = mirror
- abs_wait_short unless animation.to_screen?
- end
- abs_wait_short if animation.to_screen?
- end
- end
复制代码
- #--------------------------------------------------------------------------
- # ● 等待(快进无效)
- #--------------------------------------------------------------------------
- def abs_wait(duration)
- duration.times {|i| update_for_wait }
- end
- #--------------------------------------------------------------------------
- # ● 短时间等待(快进无效)
- #--------------------------------------------------------------------------
- def abs_wait_short
- abs_wait(15)
- end
- #--------------------------------------------------------------------------
- # ● 等待信息显示的结束
- #--------------------------------------------------------------------------
- def wait_for_message
- @message_window.update
- update_for_wait while $game_message.visible
- end
- #--------------------------------------------------------------------------
- # ● 等待动画显示的结束
- #--------------------------------------------------------------------------
- def wait_for_animation
- update_for_wait
- update_for_wait while @spriteset.animation?
- end
- #--------------------------------------------------------------------------
- # ● 等待效果执行的结束
- #--------------------------------------------------------------------------
- def wait_for_effect
- update_for_wait
- update_for_wait while @spriteset.effect?
- end
复制代码 |
|