我的 “child—>m_pParent ==0” 的异常
来源:互联网 发布:淘宝宝贝描述代码下载 编辑:程序博客网 时间:2024/06/08 00:11
bool HeroLayer::init(){
bool Ret=false;
do
{
CC_BREAK_IF(!CCLayer::init());
CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("pd_sprites.plist");
_actors = CCSpriteBatchNode::create("pd_sprites.pvr.ccz");
_actors->getTexture()->setAliasTexParameters();
this->addChild(_actors, -1);
initHero();
this->setTouchEnabled(true);
Ret=true;
} while (0);
return Ret;
bool Ret=false;
do
{
CC_BREAK_IF(!CCLayer::init());
CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("pd_sprites.plist");
_actors = CCSpriteBatchNode::create("pd_sprites.pvr.ccz");
_actors->getTexture()->setAliasTexParameters();
this->addChild(_actors, -1);
initHero();
this->setTouchEnabled(true);
Ret=true;
} while (0);
return Ret;
};
void HeroLayer::initHero(){
_hero = Hero::create();
_actors->addChild(_hero);
_hero->setPosition(ccp(400,240));
//this->addChild(_hero); //加上这句话就会有那异常
}
- 我的 “child—>m_pParent ==0” 的异常
- 出现异常 child->m_pParent == 0
- cocos2d-x中 child->m_pParent == 0 异常的可能情况之一
- child->m_pParent == 0
- Cocos2dx:出现异常 child->m_pParent == 0
- 【Flex疑问】——如何获取child的child
- 我提交的一个内核补丁—CFS的child-runs-first
- 我的异常01
- 我的异常
- first-child 和 last-child的使用
- 由于地图、图片路径不对导致(Expression: child != 0)出现的错误~
- child的宿命
- :nth-child的用法
- nth-child的用法
- nth-child的正确理解
- css的first-child
- nth-child的使用
- Child liSi = Child.CopyFrom(zhangSan);
- C/C++程序内存分配详解
- extern关键字
- C语言的声明分析
- 面试题-基础-网格移动路径算法
- 编程珠玑第五章
- 我的 “child—>m_pParent ==0” 的异常
- static关键字
- python脚本生成器
- Hadoop 在百度的应用
- zigzag数组
- 简单正则表达式匹配字符串
- 如何自定义Intent.createChooser的显示结果
- android+ndk+Cygwin+cdt+sequoyah简要笔记
- 【String疑难解惑】面试题中常见的String类问题?