#Referencing Nodes

1 messages · Page 1 of 1 (latest)

ornate lake
#

Hey, so in my game, I have buttons and locked doors. When I click a button, the door disappears, I got that figured out. However, I'd like to have multiple buttons and doors in one scene, so I want to reference a door node in each button node separately, but I am quite new to Godot so I haven't figured out that yet, and the game jam deadline is scary.

fallen wharf
#

Check out brackeys newest video about gdscript. It could give you some ideas on how to do go about this.

Off the top of my head I know you can create a variable and attach it to a specific node in the inspector for easy referencing.

You could also try making the buttons children of the doors in the same scene and then moving the buttons after the fact.

Just a couple ideas for you, I'm still pretty new myself

ornate lake
fallen wharf
ornate lake
fallen wharf
#

Hell yeah man I'm glad. This is actually a good learning experience for me too