+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?

asked Jan 12 in Engine by nwgdusr999 (117 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 How to use this Q&A? before posting your first questions.