|Topic was automatically imported from the old Question2Answer platform.
I have a player node and a door node. Im connecting a bodyentered signal from the door node to the player node. I 'm having trouble accessing $Door in the player script to change the door’s texture when the player enters the door’s area2d.
I should also mention that I made my Door.tscn global so I could access it.
How did you make it global? Did you add it to the AutoLoader?
demwilson | 2020-12-23 23:03
yup I made the door.tscn a global and made the variables that change the door texture global as you can see “Global.dooropen” . I just don’t know how to access a node and change its texture in a different node. Not too sure how get_node works
Igodotproblems | 2020-12-23 23:06
$"/root/Door/Sprite".texture instead? What error message are you getting?
exuin | 2020-12-23 23:31