Spawn and delete instances

Godot Version



Hi everyone, I’m very new to Godot. I’m trying to make a game where an object falls and when it touches either my despawner at the bottom of the level or the other object that follows my mouse cursor on the x axis, it deletes and respawns. I’ve managed to get it to delete with queue_free(), but I’m not sure how to respawn it. I tried to use instances but I wasn’t able to delete said instance when it touches either of the specified objects. Anyone know what to do?

Hi, can you show your code for deleting the object? It might not be working due to lack of signals or something.