#==============================================================================
# ■ Cache
#==============================================================================
class << Cache
def moviepics(folder, seq)
load_bitmap("Graphics/MoviePics/#{folder}/", "(#{seq})")
end
end
#==============================================================================
# ■ Game_Interpreter
#==============================================================================
class Game_Interpreter
def picmovie(folder, x, y, fcount, wcount = 1, viewport = nil)
sp = Sprite.new(viewport)
sp.x, sp.y = x, y
seq = 1
until seq >= fcount
sp.bitmap.dispose if sp.bitmap
sp.bitmap = Cache.moviepics(folder, seq)
wcount.times{Graphics.update; Fiber.yield}
seq += 1
end
rescue
msgbox "错误信息:#{$!}\n播放到第#{seq}张,在动画#{folder}" if $TEST || $BTEST
ensure
sp.dispose rescue nil
end
end
#==============================================================================
# ■ Cache
#==============================================================================
class << Cache
def moviepics(folder, seq)
load_bitmap("Graphics/MoviePics/#{folder}/", "(#{seq})")
end
end
#==============================================================================
# ■ Game_Interpreter
#==============================================================================
class Game_Interpreter
def picmovie(folder, x, y, fcount, wcount = 1, viewport = nil)
sp = Sprite.new(viewport)
sp.x, sp.y = x, y
seq = 1
until seq >= fcount
sp.bitmap.dispose if sp.bitmap
sp.bitmap = Cache.moviepics(folder, seq)
wcount.times{Graphics.update; Fiber.yield}
seq += 1
end
rescue
msgbox "错误信息:#{$!}\n播放到第#{seq}张,在动画#{folder}" if $TEST || $BTEST
ensure
sp.dispose rescue nil
end
end