place a sprite on another sprite and save it

I want to place a sprite A on another sprite B and save it as another sprite C using cocos2dx

You’d want to use CCRenderTexture, render the original sprite on it, then the added sprite, then you can do getSprite() on CCRenderTexture object to get the result.

THNX MATHIEU for the solution its a great help for my project