Reputation:
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
Reputation:
I actually found it out. Seems like i misunderstood anchorpoint a bit. The solution is:
highscoreLabel.anchorPoint = ccp(1, 0);
Upvotes: 1