Page 1 of 1

Playing BGM and sfx

Posted: 08 Nov 2010, 21:29
by nmaligec
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?

Re: Playing BGM and sfx

Posted: 13 Nov 2010, 09:52
by nmaligec
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.

Re: Playing BGM and sfx

Posted: 14 Nov 2010, 00:46
by Crush
Yes, the background music is a map property and there is currently no way to change it while the map is loaded.