This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+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 (53 points)

do you know how to do an inventory?

Edit: Accidental comment lmao

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 [email protected] with your username.