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?
GridActions can only used on NodeGrid不能直接让sprite执行GridActions。你需要用一个NodeGrid来承载sprite?
相关文章推荐
- Cocos2dx-3.x中常用切换场景特效和方式
- Cocos2dx3.x特效整理
- cocos2dx 常见的22种特效 3D特效
- 新书《Cocos2dx 3.x 3D图形学渲染技术讲解》问世
- cocos2dx的3D粒子特效编辑器(Particle Universe With Torchlight)
- cocos2dx-3.2 3DAction 一些3D特效
- cocos2dx 常见的22种特效 3D特效
- cocos2dx-3.2(36) 3DAction 一些3D特效
- [Cocos2d塔防游戏开发]Cocos2dx-3.X完成塔防游戏《王国保卫战》--游戏开始界面
- Cocos2dx 小技巧(九)现成的粒子特效
- Cocos2dx特效 水纹特效1
- Cocos2dx-3.x触摸事件之实现人机交互(二)
- css3 3D特效
- cocos2dx 3.x 项目创建
- cocos2dx 3.x 读取csv
- cocos2dx3.X项目重写(七)观察者模式以及schedule引起的bug
- cocos2dx3.x 输入优先级的问题
- cocos2dx 场景切换特效
- 鼠标移动3D翻转动画特效
- cocos2dx-3.X中对事件处理分析(3)