When you say tile, are you referring to the tilemap? In which case you don't spawn it but rather set the tile at x,y to be what you want (0-n)
also... you destroy the object before you have it spawn a new one. Is it still spawning the new one?
Also, instead of destroying the object and creating a different one, you can simply change animations, and set a flag for whether it is yellow or white. If it just comes down to changing the color of the sprite (or tile in a tilemap) I wouldn't destroy and create objects.
(be sure to use Ruskul if you respond or I won't see the post!)
After your comment, I switched to tilemap ( before I used tile background as a tile ). In short, I want to shoot with a yellow bullet at the white unsolid box to make it yellow solid box. If I shoot with white bullet at this yellow solid box, it will turn out again an unsolid white box.
So, I tried to set "set a position", but it seems that I badly understand its function. I thought that it should replace one object with another, but it did not work here.