0 votes

So the console is giving me this error and i have no idea whats causing it, i only saw one guy having the same issue on reddit but nobody helped him, here is the part where i try to put a texture a texture in a sprite that is on another scene(its not the main scene, its my character scene):

get_node("/root/Spaceship/Sprite").texture = load("res://images/Heavy.png")
in Engine by (23 points)

Is it the only way to do that?

The alternative is to instance and queue_free the scenes without changing the scene root whilst Spaceship exists.

Thank you so much man, you really helped me. Btw, how do i chose your answer as best answer and close this post??

No one's posted an answer, these are all comments. There's not really a correct answer to give other than suggesting all the possible ways of referencing a node.

Please log in or register to answer this question.

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.