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 get_tree().change_scene_to_file()
. 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!
Screenshot_20231101_194746.png
Feel free to give any advice or positive feedback!.