Topic was automatically imported from the old Question2Answer platform.
Asked By
Dragon11705
Okay so I am making a level based game where each level is its own scene, but I decided to add in a new sound effect but now I have to go into each level and manually add the nodes for the sounds. Is there a quick way to do this or do I just have to add a sound player to every scene individually and rename it over and over? What I am saying is that I would like to know if there is a way to basically copy and paste a node from one scene into another without having to duplicate the whole scene.
Okay so I just found out how to merge from scene which adds nodes from other scenes which is still useful and quicker since I would have to add it to each scene anyway. If there is a faster way to do this or a way to add the nodes to many scenes at once please tell me though.
What worked best for me is to have an scene overarching all the levels. This scene (I call it Run.tscn because it represents a run through multiple levels) holds everything that should be consistent through the levels. This includes Musik (like in your case) or the player itself (so that the players stats don’t reset when he changes a level).
If you progress to the next level, just free that level and load the next one. The musik and whatever lives in Run.tscn will stay the same. (you might have to set the players position to the entry of the new level).