Playing BGM and sfx

Content and general development discussion, including maps, quests, and server code from the development team.
Post Reply
nmaligec
Novice
Novice
Posts: 253
Joined: Thu Apr 08, 2010 2:55 am

Playing BGM and sfx

Post by nmaligec » Mon Nov 08, 2010 10:29 pm

I noticed that the script command playBGM was not implemented. Is there any way to play looping background music on a map? Stopping the currently playing bgm would be nice too.

I also noticed that soundeffectall was not implemented. If we use the soundeffect command, will it only play for the invoking player, or will it also play for people nearby?
nmaligec
Novice
Novice
Posts: 253
Joined: Thu Apr 08, 2010 2:55 am

Re: Playing BGM and sfx

Post by nmaligec » Sat Nov 13, 2010 10:52 am

I couldnt find an answer anywhare else so I'll post what I found out. You can either add a music tag manually in the client .tmx map file, or use tiled and add a map property named music with value of the bgm file name.

Of course the player needs to have downloaded the music files and placed them inside the data folder in the client's root directory.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: Thu Aug 25, 2005 5:08 pm
Location: Germany

Re: Playing BGM and sfx

Post by Crush » Sun Nov 14, 2010 1:46 am

Yes, the background music is a map property and there is currently no way to change it while the map is loaded.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Post Reply