您的位置:首页 > 移动开发 > Cocos引擎

cocos2dx 3.x 3d特效失败

2015-05-07 23:23 281 查看
转自http://www.cocoachina.com/bbs/read.php?tid=225481各位大神,有没比较好点的运行3d特效的例子?我创建一个新的工程,然后用Sprite来添加一个图片,然后使用cocos2dx 3d特效后运行失败,不知道怎么回事。求大神帮忙给个例子// add "HelloWorld" splash screen"auto sprite = Sprite::create("HelloWorld.png");sprite->setPosition(Vec2(visibleSize.width/2 + origin.x, visibleSize.height/2 + origin.y));this->addChild(sprite, 0);//3D晃动的特效CCActionInterval* shaky3D = CCShaky3D::create(5, CCSize(10, 10), 15, false);sprite->runAction(shaky3D);失败,报异常!错误列表Assertion failed!Program: ...ogram\ERMJGame\proj.win32\Debug.win32\ERMJGame.exeFile: CCActionGrid.cppLine: 84Expression: _gridNodeTargetFor information on how your program can cause an assertionfailure, see the Visual C++ documentation on asserts(Press Retry to debug the application - JIT must be enabled)断言有提示啊:
GridActions can only used on NodeGrid不能直接让sprite执行GridActions。你需要用一个NodeGrid来承载sprite?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: