class RPG::BGM
Attributes
pos[RW]
Public Class Methods
fade(time)
click to toggle source
# File lib/rgss3/rpg.rb, line 34 def self.fade(time) Audio.bgm_fade(time) @@last = RPG::BGM.new end
last()
click to toggle source
# File lib/rgss3/rpg.rb, line 38 def self.last @@last.pos = Audio.bgm_pos @@last end
stop()
click to toggle source
# File lib/rgss3/rpg.rb, line 30 def self.stop Audio.bgm_stop @@last = RPG::BGM.new end
Public Instance Methods
play(pos = 0)
click to toggle source
# File lib/rgss3/rpg.rb, line 18 def play(pos = 0) if @name.empty? Audio.bgm_stop @@last = RPG::BGM.new else Audio.bgm_play('Audio/BGM/' + @name, @volume, @pitch, pos) @@last = self.clone end end
replay()
click to toggle source
# File lib/rgss3/rpg.rb, line 27 def replay play(@pos) end