I'm having a problem trying to creat a list of songs for my game does anyone have some pointers?
Here's a list of songs you could use:
1. Talking Heads - Once In A Lifetime
2. Devo - Whip It
3. Dead or Alive - You Spin Me Right Round
4. A-Ha - Take On Me
Heh, just kidding
Seriously, what do you mean by a "list" of songs? What specifically are you trying to do?
It's fore my game you can choose what sony to play, I would like it to read from the folder "music" and show all the songs that are in it.
Think windows media player, you choose the songs.
The File object can return lists of files.
Insert a ListBox and File object and then do:
Add line: File.FileList("C:\")
Add line can take either a string, or an array of strings such as the returned value of FileList.
Ok that worked! Thank you for helping.
When I try to play the selected song Itdoes not play.
Buump
What events are you using to play the selected song?
Develop games in your browser. Powerful, performant & highly capable.
Play: On Button Play clicked
Directsound: Play music "/Music/" & ListBox .LineText(1)
Does it work if you use a full path? Try:
AppPath & "Music\" & ListBox.LineText(1)
Remember to use backslashes for local paths.
I changed it to backslashes and now it works.