im using this option script off htis other site, and seem to be getting this error
stating "Undefined bgm.volume for nil:nilclass"
Here is the part of the script:
def bgm_play(bgm)
@playing_bgm = bgm
#@music_name = bgm.name
if bgm != nil and bgm.name != ""
Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume*$game_music.bgm_volume/100, bgm.pitch)
else
Audio.bgm_stop
end
Graphics.frame_reset
end
It's best to post the error in the thread on the website from where the script comes from.
yes BUT...
1. The same question wasnt answered at the site it was found at
2. I dont feel like signing up to another site for one question
3. This seems like a pretty easy solution to fix, just not for me
4. If not, well ill figure out then
Is the error from you calling the method through a call script command, from using a custom music script or what? Also, like Banisher said, you should post the error you are receiving as well.
No wonder: Some code is missing. ::) Either use the entire script or find somebody who can isolate the part you need from it. Basically this part would be missing. And it's "$game_system" and not "$game_music".