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.


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

in Engine by (33 points)

1 Answer

+2 votes
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.

by (27,664 points)
selected by

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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.