+1 vote

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!)

in Engine by (15 points)

1 Answer

0 votes

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 ()
by (52 points)

do you know how to do an inventory?

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.