09-19-2012, 01:50 AM
I actually have done that myself. Here are bits of the Game_System area:
I also made some extra changes to be able to start a song where I define, which I am yet to work out how to make the song continue after battle. I just need to be able to get the current position.
PHP Code:
class Game_System
def bgm_data
data = {
"Battle2" => [60, 22180, 127830],
}
data.default = [0,0,0]
return data
end
PHP Code:
# BGM Every setting
if bgm != nil and bgm.name != ''
if bgm_data.include?(bgm.name)
start = bgm_data[bgm.name][0]
loop = bgm_data[bgm.name][1]
fin = bgm_data[bgm.name][2]
end
PHP Code:
def bgm_play(bgm, channel=1, startpoint = 0)
PHP Code:
fin = bgm_data[bgm.name][2]
end
start = startpoint if startpoint != 0