So I'm making a game (infinite jumper style), and I'm wanting to play a random song from a playlist. I want the song to be played five times, then make the game choose a new song to play.
All the songs (there are 12 of them) are just called 1 2 3 (it goes on to 12).
The round stops when you fall off, and the layout and global variables are reset to start a new round.
So the question is, how do i make the same random song play five times then choose a new random one? (I couldn't find a way to do it with WebStorage)
Thanks in advance! <img src="smileys/smiley17.gif" border="0" align="middle" />