Need help in managing sprite transform.

Hello,

I am working on an exact game like Hextris. I am trying to move lines from outside of the hexagon to inside. I have created a sprite for the line which I am moving towards the center. Also I am reducing the X scaling to fit just outside the inner Hexagon.

Now the problem is that if I only scale only by X, it loses its shape and becomes something like this. And if I Scale it by X and Y both it retains its shape but it is not the desired result as I want its thickness to be intact.

How can I achieve the exact effect like the Hextris.
78273-untitled.png

You can try to divide your lines in 3 parts : attach the sides to the central line and scale the central line only.

78285-exemple.png