I am currently working on a script that plays music, and also learned about autoloading. I was tired of music being stopped everytime I switch scenes by using
. I tried deleting the previous scene and add a new one as a child of the root node, but that didn't stick right with me!
Heres a snippet of the code show in the image below!
Feel free to give any advice or positive feedback!.