How do I take into account all objects that are NOT linked

Sorry if the answer is simple but I looked at the documentation and tried google/ai and can’t see it.

I tried inverting the condition and that doesn’t work.

I just want to select all objects besides the one that is linked to the referenced object

Can you share your events?

Quickest thing I can think is to add all objects in a group. Then give them a Boolean variable that will be turn to true or false if the object is selected.

As it is now, the pink objects don’t get deleted, but If I don’t invert the “take into account” condition, all pink objects get deleted

And you are creating them where exactly?

I left it blank, so I believe that defaults to x0 y0

So they should all be in same place
So you can’t really tell how many are there

Also i think your 1st event is doing it for ALL red objects
So you are creating and linking them all to each other

I think 1st event should not use repeat for each

I am using the debugger to see if they get deleted (none of them get deleted).

Yes, I want a pink object to be created for every red object, so each red object has its own pink object linked to it.

Ok, I found a post that touched on this. Understand inverted take into account linked objects - #2 by Digitalstickmans

It said to use the “Not” condition, which appears to work for my test example.

However, now I’m stuck with a problem that is closer to what I’m actually trying to do, which is:

Each red object has a pink object linked to it.

If a red object is overlapping a pink object that is NOT linked to it, delete the pink object that is not linked to it. (If a red object is overlapping a a pink object that IS linked to it, nothing should happen.)

Hold on
Are you trying to randomly create spawns but at the same time make them not overlap each other?

No, everything I’ve been sharing here have been isolated examples of specific things I want to work in order to get something more complex to function.

I think I may have found a solution though. I just found a Unique ID extension that seems to accomplish the goal. Unique Identifiers - GDevelop documentation

It can easily assign Unique ID numbers to objects, which you can then link to a different object by using an object variable.

Now, if a red object is overlapping a pink object who’s id matches red’s UID, nothing happens. BUT if red overlaps a pink object who’s ID does NOT match red’s UID, it deletes that pink object.

So this appears to work so far.