Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | TGMG |
I want to use an array to my store my songs, so I need to store AudioPlayerStream nodes into the array.
I created my array like this
MySongs = []
Then the first thing that came to my mind in order to add an element to the array was this:
MySongs[1] = $MySong
But It doesn’t work, I had to make it this way instead:
MySongs.append($MySong)
Also, something like the following also doesn’t work
MySongs = [$MySong_1 , $MySong_2 , $MySong_3]
I’m missing something here, can someone show me all the possible ways to make an assignment of nodes to an array?
Thanks.