Overlapping of drag and drop puzzle pieces
I am creating a drag and drop puzzle with targets and this function works but I think there are issues with the pieces overlapping when trying to put them in the correct positions and they keep snapping back to their original position as if they don't fit. I'm assuming its something to do with the margins around the shape and since they are strange shapes (they are pieces of different locations in the south American map), this seems to be an issue. another example is if pieces have been fitted and there is one piece left in the centre of them, it doesn't snap into its position probably because of all the other shapes around it "covering" its target. I hope that makes sense.
May its be something to do with adding a Hit test in my code?
Thanks
