本帖最后由 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
#--------------------------------------------------------------------------
# ● 显示普通动画
# 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
#--------------------------------------------------------------------------
# ● 等待(快进无效)
#--------------------------------------------------------------------------
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
|