setting anchor points

Hello, I’m trying to set anchor points but I cant just seem to get it how can I set it. I can do it to a normal display object but I am using the score module provided by corona here:

https://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

I’m using the exact same thing I just can’t seem to figure out where and how can I set the anchor points on the score so instead of spreading on both sides it should only spread to the right side once the score increases.

Hi @amdriod95,

If you’re following the code in that tutorial, just set “.anchorX” on the “scoreText” object to 0, which means the anchor is on the left side of the object. Then, as the score increases, it should stay aligned to that left point.

Hope this helps,

Brent

Hi @amdriod95,

If you’re following the code in that tutorial, just set “.anchorX” on the “scoreText” object to 0, which means the anchor is on the left side of the object. Then, as the score increases, it should stay aligned to that left point.

Hope this helps,

Brent