user914372
user914372

Reputation:

Cocos2D bottom right anchor point

I want to make a label's anchor point to the bottom right so it can view different values without going off screen (the label is on the bottom right corner of the screen). I tried highscoreLabel.anchorPoint = ccp(highscoreLabel.contentSize.width, 0);

But that didn't seem to work.

Upvotes: 1

Views: 509

Answers (1)

user914372
user914372

Reputation:

I actually found it out. Seems like i misunderstood anchorpoint a bit. The solution is:

highscoreLabel.anchorPoint = ccp(1, 0);

Upvotes: 1

Related Questions