ID:268473
![]() Aug 9 2004, 8:57 am
|
|
How do u add music to games? Such as playing another song when the other one is finished instead of playing the same one over and over again.
|
Very, simple. To make the song go to a mob when they login do this....
mob Login() usr<<sound('yoursong.mid or wav',1) Note the 1. That means it will loop. 0 means it won't. |
Both wrong, he asked how to queue up a linup of songs instead of looping a single song.
Have a list of songs in an associative list, and associate the file with its length. The number should be the length of the song in tenths of a second. Then you can easily tell when a song is finished playing. var/global/list |
world << midi.mid
I believe that's how it goes, anyway.