wertt22 As I understand, your code will detect collision in this red point:
You need to check if dec sprite overlaps both sprites. But this is a very ineffective method. With sprite size 300x300 px, the loop will repeat 90,000 times and there will be a considerable lag.
creat a big detect set position evey big detect,s size, when big detect overlap the sprite, use big detect spawn a mini detect ,then use mini detect set position to big detect ,so it can narrow the scope of judgment