Hi everyone
I'm making a game that has two squares and a rectangle. The colour of the squares and rectangle changes between red and green.
I want the squares to disappear if you click on them while they are the same colour as the rectangle.
I have a green square sprite, green rectangle sprite, red square sprite and red rectangle sprite.
When each sprite is loaded, the program sends a signal to the square script so it knows what colours the squares and rectangle are.
This is my code to detect when the squares are clicked on:
The problem I'm having is that the script won't receive more than two signals at a time.
It'll either receive the _on_Zone signals or the _on_Square signals, but not both. It just switches to receiving the other signal when I try to set it to receiving both.
Does anyone know how I can fix this?
Thanks