Deleting an object before linking won't properly perform the link

It sounds similar to this bug.

https://forum.gdevelop.io/t/object-focus-bug/53856/5?u=keith_1357

If you use an action it seems to pick the object. When you add another object, there are now 2 objects picked. When you link the object it can only link 1 object at a time so it links to the one already in the scene.

The type of the 1st action doesn’t matter. You can change delete to an action that sets a variable. It links the original object instead of the new object because the one in the scene is the 1st in the pick list.

1 Like