Can't find node %PhantomCamera2D #249
-
I'm very new to Godot still so this is probably a stupid mistake but I can't seem to reference the camera from these instantiated nodes |
Beta Was this translation helpful? Give feedback.
Answered by
ramokz
Apr 16, 2024
Replies: 1 comment 2 replies
-
Is the script you're showing attached to all the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on the error output, it says that it's looking for
%PhantomCamera2D
as a child inside the tile nodes. But because thepcam
node is a sibling node, it should just be a case of changing the relative path. This might not be the most concise way of doing it, but you can always assign it in the _ready() method by doing, for example.In the odd chance that there are some instantiation race conditions, you can also verify that the node is ready by using an await signal like so: