Somehow, my array won’t play the song I tell it to and instead it goes into a bug. Can anyone fix this? Thx
You have an array inside another array, so when you grab the “song” you are actually grabbing an array from the second layer of arrays, and not the songs inside. You need to take out the inside arrays and put all those songs into a single array. It should only say “array of…” once, at the top.
That’s because you are telling it to play the array, but it has to be the song.
Here:
By putting the song in the for element loop. Make sure the song is set to until done and in a separately do block to prevent it from overlapping songs or having the song play before everything else does.
hi there, so i’ve seen your code for a while, and now I can say the problem:
you are trying to play a bunch of musics at the same time (It’s like trying to play a bunch of discos at the same time)
here’s the fixed version (all I did was just join al of the audios into one)
Not sure if this is how arrays work but I think your “get value 1” is calling that first entire array of songs, try merging the 2 arrays inside SongList. I could be wrong though I haven’t done much with arrays.
This is because your trying to assign an array of playables to an input that only takes playables by themselves.
As far as I know, this is how you can get it to play over and over again.
Getting it to stop when you actually enter to play the game is up to you. Sorry.
the thing with nested arrays is you need to have it in each other like this

https://makecode.com/_XzaVpkJFvD6t fixed link
Thank you all for your responses so far! But I want the music to play forever until I use the stop all sounds block. Can anyone do that?


