Replies: 5 comments 23 replies
-
|
you can use |
Beta Was this translation helpful? Give feedback.
-
|
That's not what I need. I want add label to sprite, and then label in center of sprite without set position. |
Beta Was this translation helpful? Give feedback.
-
|
Have a look at |
Beta Was this translation helpful? Give feedback.
-
|
Try this (answer on cocos2dx forum): |
Beta Was this translation helpful? Give feedback.
-
|
Here is a working code (setPosition is needed): |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-

How to set position in center of parent node with anchor point (0.5, 0.5) like cocos creator do?Beta Was this translation helpful? Give feedback.
All reactions