Any way to duplicate complete level?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By seeeking

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.


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

:bust_in_silhouette: Reply From: Zylann

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: Design the GUI — Godot Engine (3.0) documentation in English
But I believe you have to read more the docs because it’s part of a tutorial.

Thanks, Zylann!
So just “save as” and have a copy, for some reason I haven’t thought about it.
Thank you very much :slight_smile:

seeeking | 2018-01-31 22:00

…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.

seeeking | 2018-01-31 22:04