How can I get the value of the node's x-axis?

This statement can get the coordinate position of the node,

node->getPosition();

But I want to get the value of the node’s x-axis, how should I modify it?

https://docs.cocos2d-x.org/api-ref/cplusplus/v3x/d3/d82/classcocos2d_1_1_node.html#ab7673cf50f0c50cbba82a15936738fb1

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.