I am new to C2 with a programming background and I am baffled on this one.
I am developing a strategy game that records accuracy of touches.
I have a large object in the background and a smaller object in the foreground.
The background object has a z-index of 0 (sent to bottom of layer). The foreground object has been sent to the top of the layer.
When I click the object in the foreground, it executes the on touch event for both my foreground object AND the object at the bottom of the layer.
Based on z-index, I am only expecting the foreground object to register a touch when it has been accurately selected. The background object should only register a touch on misses.
Thanks in advance!