+2 votes

I have a main play scene structured like this:


Now, the CloudScene1,2 are scene instances. It is like this:


In my main play scene, I want to instantiate different types of clouds. I want to change the texture of Sprite in CloudScene for different children from the main play scene itself. How to do that? Is it not possible without coding?

If the scene instance node was expandable, it would have been really useful.

asked Nov 23, 2016 in Engine by codevanya (66 points)

2 Answers

+3 votes
Best answer

If the scene instance node was expandable, it would have been really useful.

You can click the arrow next to the name of the scene and click "Editable Children" to show the instanced scene and all its nodes.

About changing the texture without code, i guess it would be possible to do so with the AnimationPlayer http://docs.godotengine.org/en/stable/tutorials/step_by_step/animations.html

answered Nov 23, 2016 by Rasmus (304 points)
selected Nov 23, 2016 by codevanya

Oh! How stupid of me! The option was right there all the time and I didn't see it. Thank you.

Just to add if anyone sees this, in 3.x ++ you have to right click the node and select "Editable Children"! Was searching for this for hours :O

Difference is the scene icon now opens in a new tab.

+2 votes

You can see scene icon on Scene panel with instanced scene node.
Click and check Editable Children.
Then you can see child nodes and change there properties.
Those changes are saved in current edited scene.

answered Nov 23, 2016 by volzhs (9,489 points)

Yes I see that now. Thanks.

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.