ID:176877
 
here's the code i'm using to to get an midi to play during my game-

mob
proc
play_song()
world << sound('One_Step_Closer.mid')

the game plays with no errors, and the file is in the right place...it's just a problem with the code i guess. any ideas? thanks.
anyone?
EnjoiStaticX wrote:
here's the code i'm using to to get an midi to play during my game-

mob
proc
play_song()
world << sound('One_Step_Closer.mid')

the game plays with no errors, and the file is in the right place...it's just a problem with the code i guess. any ideas? thanks.

try changing the last line to
<code> world << sound('One_Step_Closer.mid',0,0) </code>
the first zero means don't repeat the song, you can change that to a 1 if you want it to repeat. And the second zero means to interrupt the current song playing.