# Game Maker: How to check overlapping instances of the same object?

I want to make sure that no two instances of obj_A are overlapping, but can't seem to figure anything out, because instance_position, instance_nearest and the like will include the instance running it, so if I had something like:

if instance_position(x,y,obj_A)!=noone
{
with(instance_position(x,y,obj_A))
{
instance_destroy()
}
}


All instances of obj_A will destroy themselves because they think they are overlapping with themselves.

with(obj_A){

As it turned out, I just needed to compare the instances' id's.