I want to change the parent of sprite, using oldparent->removeChild(child) from the old parent node, and then child->setParent(newparent) in the child sprite, passing the new parent as param. also tried with newparent->addChild(child).
The issue is that the position of the child does not change after that operation. I expect to see the child sprite changing its position to a new position relative to the parent transform. Is this the expected behavior or I need to call some update method to force a refresh of the child transform?