My problem is that I want to shrink a hollow box that is made of 4 sprites to a certain size with the tween behavior, and the shrinking part is perfectly fine except for the fact that the box doesn't connect to each other when shrinking and I don't know how to fix it.
I have tried things like changing the tween to change the height to certain image points, making some walls a child to another, and making a distant physics joint, but nothing works.
Also for the images, ignore everything except for the walls, which are the bright white rectangles (the faded ones show the original size).
the code
what it is doing (ignore the giant burrow of sand)
what I want
Thank you in advance!