1 decade ago by mimik
Hello
Search the forum and cant really find anything about playing random order of music.
How do i play a random track?
I want it to randomize the tracks in there
i can shuffle the array ig.musicSecondary.tracks
and the array gets shuffled but the first song always plays.
Search the forum and cant really find anything about playing random order of music.
ig.musicSecondary = new ig.Music(); ig.musicSecondary.random; ig.musicSecondary.add('media/beats/m1.mp3'); ig.musicSecondary.add('media/beats/m2.mp3'); ig.musicSecondary.add('media/beats/m3.mp3');
How do i play a random track?
I want it to randomize the tracks in there
i can shuffle the array ig.musicSecondary.tracks
and the array gets shuffled but the first song always plays.