-
I am making a chess game, in that pieces are in depth 1 and board squares are in depth 0. When I want to move a piece, I first click on the piece and then click on board square to move. But since the events only triggers for entity of higher depth, if I click on square with opposite piece, it triggers the click event for the piece. Say if I selected a white piece and I can't move the piece to square with black piece and capture it. Is there a way based on condition I can temporarily disable click event for some entities in higher depth or make them kinda transparent, such that I can only select the lower depth entities? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Responded in discord, copying here as well:
https://discord.com/channels/691052431525675048/1038322714320052304/1196888893644095619 |
Beta Was this translation helpful? Give feedback.
-
I insert the necessary pieces with the |
Beta Was this translation helpful? Give feedback.
Responded in discord, copying here as well:
https://discord.com/channels/691052431525675048/1038322714320052304/1196888893644095619