Detecting 'scenes' by x and y position

elek95eelelek95eel Posts: 1Member
in GUI

I've been creating a project that incorporates a lot of UI elements in 3 scenes.
1. Scene 1 is the whole interface which I've basically set up already.
2. Scene 2 (and its duplicates) consists of a TextureButton node to represent 'tiles' - 1 to represent empty, and the rest to represent 1 to 9
3. Scene 3 consists of a referenced scene 2 arranged into a 3x3 grid manually

What I was wondering with is if I can detect a duplicate of an instanced scene (sans the blank tile) based on a row or column so I can throw an error?


  • theludovyctheludovyc Posts: 6Member

    Hello :),

    If I understand, scene3 contain 9 instances of scene2 arranged into a 3*3 grid. And you do that manually.

    How can you have problem?

    If you instantiate buttons with script, see this, bullet is like your buttons.

  • 1000h1000h Posts: 116Member

    it sounds like you want to look into groups and adding nodes to groups. otherwise i would within a script, when looking for stuff, just look for whatever variables it has. i set_meta() on nodes all the time to keep track of them

Sign In or Register to comment.