I tried adding music to my game and it compiled but i cant hear it in the game.... Am i doing something wrong? Here is the code.
mob
Login()
icon='people.dmi'
loc=locate(8,6,1)
usr<<sound('Air.mid',1)
ID:159312
Apr 3 2009, 2:22 am
|
|
In response to Stupot
|
|
I'd give him a rte if it wasn't in the correct directory.
|
In response to Tubutas
|
|
Tubutas wrote:
<s>I'd</s> It'd give him a <s>rte</s> runtime error if it wasn't in the correct directory. Not everybody's going to guess what you mean when you stick a random acronym in that isn't even capitalized. :P But anyway, it'd give him a compile-time error in that case. :P The problem could be that that Login() override is never called because he has multiple ones that don't call ..(), or it might be that 'Air.mid' is an invalid sound file or is not supported by BYOND (or it otherwise has trouble playing it). He should put a debug output line to check if the proc runs, and if it does then he should try a different file and see how it goes. |
In response to Kaioken
|
|
Kaioken wrote:
Tubutas wrote: How do I put a debug output line in my code. |
In response to MasterShake1
|
|
A debug output line is just some random text you ouput to the world. You put it in a proc that you want to make sure runs correctly.
proc/Hello_World() |
In response to Spunky_Girl
|
|
Thanks it works now.
|
Do you have Air.mid in the correct directory?