Do something with the previous object and then do other action

Hello, Im making a mechanic that lets you tap a object to teleport to it. I want the object that im standing to be deleted and then teleport to the selected block.
But GDevelop deletes the object that im teleporting to even if I put the action before teleportation.

Does anyone know how to do this?

You need pick all objects condition to redefine your selection.

Maybe try making an object variable called “StoodOn” That goes from 0 to 1 when in collision with the player. Then you can test if the StoodOn variable is set to 1 and the player is not in contact with the object, then delete it. Hope this helps.