I’m having a hard time getting my gui to return the gui box I’m clicking on. I’ve tried so many different things it’s driving me nuts.
I now debug print everything and where I’m clicking should NOT be returning the node it’s returning.
The top boxes work perfectly and return correctly. The circled box to the right isn’t accurate. I click well to the left of it but it returns saying I’m clicking on it.
DEBUG:SCRIPT: Checking bet zone bet_zone_any_seven at Position: (1298.00, 585.00)
DEBUG:SCRIPT: Placed bet on bet_any_seven: 0
I’m clicking at (1142, 569)
DEBUG:SCRIPT: Touch position (adjusted): vmath.vector3(1142, 569, 0)
DEBUG:SCRIPT: action.screen_x: 1142 action.screen_y: 569
DEBUG:SCRIPT: action.x: 1142.5 action.y: 569.5
DEBUG:SCRIPT: Root position (local): vmath.vector3(1142, 569, 0)
But some reason it’s saying I’m clicking on a GUI Box that is clearly to the right of that.
DEBUG:SCRIPT: Checking bet zone bet_zone_any_seven at Position: (1298.00, 585.00)
DEBUG:SCRIPT: Placed bet on bet_any_seven: 0
Also for other Box Gui Nodes the Y axis is off. I have no idea how to fix this. This is a 3D scene (top down camera).