I have 6 sprites ( invisible) ( yellow boxes)
I also have 6 sprites ( numbered 1-6 ) ( various colors)
The 6 invisible sprites are placed on my layout at specific locations. ( I have them close to each other for this question)
The 6 invisible sprites are also 1 single sprite copied 6 times
The 6 colored sprites are set to appear on top of any of the 6 invisible sprites randomly
They appear for a few seconds and then disappear.
There is no set pattern of where any of the 6 sprites appear which is what I want, however, that also means that any of the 6 sprites could appear together on top of each other.
Right now I am using overlap to determine if a sprite is already in that position and then destroying one of the sprites.
( If sprite 1 is overlapping sprite 2 then destroy sprite 2)
That seems like a waste of time.
What I would like to know is how I can tell when any of my 6 sprites are already being occupied on top of any of the 6 sprites.
Something that knows when there is already a sprite on top of one of the invisible sprites and won't let any other sprites go into that position.
This is the way I have my sprites show up on top of the invisible boxes: