+1 vote

Confused why "Instantiated scenes cannot become root"? Say I have a scene 'Character', which contains everything for every character in the game, why couldn't I use Character scene as the root node for a Player scene?

As I was imagining; Player would have had the Character scene as the root of its own scene, and I'd have added a Camera to follow the character and a gdscript extending the Character script to add input functions. But it's not possible to add a scene as root of another scene... Gives error: "Instantiated scenes cannot become root".

Basically; I don't want a Player node to 'contain' a Character scene... I want to extend the Character Scene so that I can add a Camera node to the Character, and give it a script which will extend the Character script. Is this even doable?

in Engine by (131 points)

Please log in or register to answer this question.

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 Frequently asked questions and 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.