Re: BGT pack stuff and custom classes and functions
Ah.
Try this?
(Haven't actually tested it):
sound_pool pool;
string[] files=find_files("sounds/*");
int n=0;
dynamic_menu menu;
for(uint i=0; i<files.length(); i++) {
menu.add_item_tts(files[i]);
}
while(n>=0) {
n=menu.run();
if(n>=0 and n<files.length()) {
pool.destroy_all(); // Unnecessary, but I find letting sounds overlap when I do this to be annoying at best.
pool.play_stationary("sounds/" + files[n], false);
}
}
_______________________________________________ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector