Hello,
I'm trying to come up with the efficient way to have tiles with text on them, think of Scrabble.
I do have a .png file with tile image, it's the same for all tiles in the game. Right now I create CCSprite from .png file, add it to the layer, create CCLabelTTF and add it as a child to CCSprite and then add CCSprite to the layer. Repeat for all the tiles.
This way I can move or hide my tile and text moves with it. Very convenient.
Now I want to make it more efficient and use CCSpriteBatchNode for tiles. I add CCSPriteBatchNode to the layer, add CCSprite to CCSpriteBatchNode and add CCLabelTTF to CCSprite itself.
It kind of works, but I see black squares instead of the text... Am I doing something wrong?
So my question is: how to create tiles with text and background, where background is the same for all tiles in an efficient way?