I have read everything I could on Anchor Point and also w/ scaling. I still have no idea what is going on with a sprites position when you scale it.
Its so weird. If you are a long way away from the Y axis, the horizontal positioning of the sprite is different on opposite sides of the Y axis.
If my sprite is on the left side of the Y axis, it will reposition itself to the RIGHT of its pre-scaled position some distance I cannot figure out. The opposite is true when it is on the right side of the Y axis.
Can someone please just help me decipher how scaling works w/ regards to a sprites positioning.
The scenario is this:
Sprite starts out w/ scale of 1.0f.
Every frame I decrease the scale 0.01f until it reaches 0.5f (double the size). What should I change the sprites position to every frame to make up for the displacement of the anchor point due to scaling?
Same goes with the opposite way. Start at 0.5f and increase the scale 0.01f every frame until it hits 1.0f.
Thanks!
PAR