ID:149271
![]() Jun 6 2002, 4:49 pm
|
|
Alright, I have just incorporated sound into my first game. It's all spiffy-like, with various options, battle music (it even plays the song you were just listening to after the battle! :P). Now, I want to know how to do a random playlist of all the songs, one after the other. usr << sound(etc, etc) won't work, as it will play the songs right after each other, and sleep won't work either, as all the songs are a different length, and it's uh... random. Some help for the anti-newbie coder? :P
|
Copyright © 2025 BYOND Software.
All rights reserved.
start
var/list/songs = list()
songs.Add('bah.mid','poo.wav','boo.mid')
var/listening = pick(songs)
src << sound(listening)
goto start