currentSong = ds_list_find_value(global.musicPlaylist, 0) sound_replace(snd_music, currentSong, 3, true) sound_play(snd_music)
How would I cycle through the data list for the next song?
Not Telling
19 June 2012 - 10:56 PM
currentSong = ds_list_find_value(global.musicPlaylist, 0) sound_replace(snd_music, currentSong, 3, true) sound_play(snd_music)
19 June 2012 - 09:32 PM
global.musicPlaylist = ds_list_create()
var fileName,i;
fileName = file_text_open_read("playlist.txt");
i = 0;
while (!file_text_eof(fileName)) {
with (instance_create(x, y + (16 * i), obj_slot)) {
soundFile = file_text_read_string(fileName);
draw_text(x, y, filename_name(soundFile));
ds_list_add(global.musicPlaylist, soundFile)
}
file_text_readln(fileName);
i+=1;
}
file_text_close(fileName);currentSong = ds_list_find_value(global.musicPlaylist, 0) sound_play(currentSong)
25 May 2012 - 09:47 PM
with obj_mouse {
path_start(pth_maze, 1, 0, true)
}26 April 2012 - 02:55 AM
26 April 2012 - 12:44 AM
Community Forum Software by IP.Board
Licensed to: YoYo Games Ltd

Find content