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.
|
In response to Devourer Of Souls
|
|
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. |
In response to Fantasy Entertainment
|
|
Except you shouldn't be using usr in procs.
And you'd want to put that in client/New(). |
In response to Fantasy Entertainment
|
|
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.