Skip to content

How to make menus? #207

Answered by r6915ee
The-Enazer asked this question in Q&A
Oct 18, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

If what I'm getting at here is right, the script is actually trying to load a simple resource instead of a scene, so technically your code should be working - just not in the way you intended. Resources and nodes (which scenes are a type of the latter) are fundamentally different in how they work: a resource is essentially a basic object that can have properties, while nodes are objects that can have "children" to form a basic hierarchy system, commonly using resources to specify certain properties or have their own properties.

There's a particular class in Godot, SceneTree, that handles the hierarchy of nodes. It usually is referenced by using the get_tree() method from any node. It a…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@The-Enazer
Comment options

@The-Enazer
Comment options

@The-Enazer
Comment options

@r6915ee
Comment options

Answer selected by The-Enazer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants