Good everybody; I have a problem when destroying an object.
I tell you; the game is very simple; we have to shoot with the mouse (put it on top) and it destroys the object. That works easily.
We have options to create distractions, that is to say a target that if you touch it will subtract points; generating the distractions is not a problem either, they are generated, and when I break the correct stimulus, this and the distraction stimulus are generated again.
The problem comes when trying to destroy the distraction stimulus; imagine that there are 3 distraction stimuli and 1 good one, with the way I have done it, all of them should be destroyed but only the one I am putting the mouse on is destroyed. What I want is that when I am on top of that one, all of them are destroyed, like with the good one, and although I have replicated the same code, it doesn't behave the same way.
Any idea what can happen or how to make that when the cursor is on the distraction target all of them disappear.
Thanks