- Home /
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.
Answer by DenisTribouillois · Sep 15, 2016 at 01:06 PM
You can try to divide your lines in 3 parts : attach the sides to the central line and scale the central line only.
This seems that it will solve the problem thanks man. I will try and will post the result here.
It works perfectly. Only the problem is I can't figure out how to move both ends inwards to match the scale of the center piece so that it looks like one object all the time.