I have a sprite.
The pivot is at a random point.
I want to increase the sprite scale on the x-axis until I reach a point on the right.
I have a method to set / add a size.
I calculate a distance between the edge of a sprite and a specific point and add it as a size.
The problem is that the sprite's scale increases its size in both directions of the x-axis (left and right) since the pivot is not at the left edge .
How to solve the problem?
J & # 39; have:
I want to obtain: