Main Menu
  • Welcome to The RPG Maker Resource Kit.

Bgm Volume error

Started by Madwithstaples, March 04, 2007, 05:04:52 PM

0 Members and 1 Guest are viewing this topic.

Madwithstaples

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


My Game: (keeping title secret :P)

Story: 0%
Characters: 12.5%
Maps: 0%
Events: 0%
Scripts: 26%

&&&&&&&&&&&&&

It's best to post the error in the thread on the website from where the script comes from.
&&&&&&&&&&&&&&&&

Madwithstaples

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
My Game: (keeping title secret :P)

Story: 0%
Characters: 12.5%
Maps: 0%
Events: 0%
Scripts: 26%

Shinami

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.

Blizzard

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".
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!