03-17-2013, 11:34 PM
Create Sound object in game. Name it "BGM" and put it directly in the world.
Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.
Whenever you want it to play, call this line somewhere in a script:
game.World.BGM
top()
sleep(0.1)
game.World.BGM:play()
If you just want it to play in your server, type "game.World.BGM
top() game.World.BGM:play()" into the Lua console of the server.
Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.
Whenever you want it to play, call this line somewhere in a script:
game.World.BGM
![Confused Confused](http://2dworlds.buildism.net/forum/images/smilies/confused.png)
sleep(0.1)
game.World.BGM:play()
If you just want it to play in your server, type "game.World.BGM
![Confused Confused](http://2dworlds.buildism.net/forum/images/smilies/confused.png)
![[Image: iwn8gk.gif]](http://i46.tinypic.com/iwn8gk.gif)