0 votes

Hi everybody

Is there a decent way to duplicate an entire level scene without having to "merge from scene" nodes one by one?

I can't seem to find a way to do so.

TIA!

P.S. I mean within the IDE, without duplicating the file by hand :)

asked Jan 31, 2018 in Engine by seeeking (33 points)

1 Answer

+1 vote
Best answer

Why do you duplicate your level if it's to merge it back?

Duplicate a level is very easy. If your level is a scene, just save it as a new file, so you will have two files containing the same scene separately. If your level is only a branch of a scene, you can right-click on the branch and choose "Save branch as scene".

However, if you use one of these two solutions, modifying the original scene will not update its copies. Because of course, they are copies^^
So if you want that, a third solution is to choose Scene -> New inherited scene.
This will do the same as saving under a different file, but instead of copying, the new scene will refer to the original. Changes to the original will then replicate in the inheriting scene, unless you made changes to it, which will individually override the original.

Scene inheritance is mentionned here: http://docs.godotengine.org/en/3.0/getting_started/step_by_step/ui_game_user_interface.html#use-scene-inheritance-to-create-the-remaining-elements
But I believe you have to read more the docs because it's part of a tutorial.

answered Jan 31, 2018 by Zylann (26,157 points)
selected Feb 3, 2018 by seeeking

Thanks, Zylann!
So just "save as" and have a copy, for some reason I haven't thought about it.
Thank you very much :)

...and to reply to your question: I need several levels with same structure, looks like an inherited scene can be a solution, as long as I can change lots of stuff in in. I'll definitely look into it.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.