Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | GunPoint | |
Old Version | Published before Godot 3 was released. |
Okay, so i couldn’t understand how paths work
I know how the scenetree, root etc work but i can t understand why my game can’t find given paths
My questions:
- How to acces a node that is not a child and it is in the current scene
Example:
-node
-
- player
-
- items
How i can get the node “items” in the player’s script?
- items
- How to acces a node that is not in the current scene and cant work with signals and singletons
Example: Scenes: world, player
how i can acces a node (inside player scene) while im in a script inside world scene
For example, when the player hits something (in world scene), his camera (which is inside player scene) changes perspective ( in the case you can’t use signals or singletons) How i can get the camera node (which is in player scene) from a script which is inside the world scene