How to make a node in another scene visible?

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

I am making a 2d game where you have to play levels and collect a new plant for each level you complete. This plant will appear in your greenhouse once you completed the level (in the main menu you can choose if you want to go to the greenhouse or if you want to play the levels). I am very new to Godot and this is the first game I’m making using it.
Now my question is, how can I make this plant (node) visible when it’s in another scene and how do I keep it visible?
(I’m sorry if this is a dumb question! Also, English is not my first language, so I’m sorry if I made any grammar mistakes. Thank you for reading my question!)

:bust_in_silhouette: Reply From: elrico26

You can use $ node.visible = false or true that if you already have it added to the main scene you add it with onready var iteam_ma = preload ("route of the scene")

then the logic to add and use

var name = null
if ...:
name. iteam_ma.instance ()

do you know how to do an inventory?

elrico26 | 2020-10-27 15:18

Edit: Accidental comment lmao

Noccai | 2022-09-18 10:38