Forums » C++ Framework » Bad access in CCSprite::addChild »
| Nikolay Lastname | Bad access in CCSprite::addChild | ||
|---|---|---|---|
|
Added by Nikolay Lastname about 1 year ago
I am trying to add black backgound with opacity to my sprite (something like LIghtbox): void CCSprite::addChild(CCNode *pChild, int zOrder, int tag)
{
Can anyone explain what this line means? |
||
| Kevin H | RE: Bad access in CCSprite::addChild | ||
|
Added by Kevin H about 1 year ago
Since its going into the "if(m_bUsesBatchNode)" section, the sprite is setup to use a sprite batch node. If the sprite is using a sprite batch node, it must use the same texture as the parent node. |
||
| Nikolay Lastname | RE: Bad access in CCSprite::addChild | ||
|
Added by Nikolay Lastname about 1 year ago
But I use CCLayerColor. There is no any textures |
(1-2/2)