Cocos2d-x3.0版本 网格特效的运行问题

在2.x版本中,我在自带的HelloWorld例子中创建一个网格特效并运行,程序能正常运行。网格特效能显示。但是在3.0版本中,我在HelloWorld中运行同样的代码,程序却出错。我想问下为什么会这样,有什么解决办法没有。

bool HelloWorld::init()

{

...

auto shaky3D = CCShaky3D::create(2.0f, CCSize(15,10), 5, false);

this->runAction(shaky3D);

...

}

<pre class=""""brush:cpp;""" toolbar:="""""" true;="""""" auto-links:="""""" false;"=""""""><img src="http://www.cocoachina.com/ask/questions/"http:/www.cocoachina.com/ask/questions/"http:/www.cocoachina.com/ask/questions/"http:/www.cocoachina.com/ask/app/webroot/upload/201408/20140820180814_44131.jpg"""" alt="""""""" border=""""0"""" /> 

你可以参考一下下面的网页

http://www.cocoachina.com/bbs/read.php?tid=225481

http://blog.csdn.net/zhouyunxuan/article/details/36375361#

http://blog.csdn.net/haomengzhu/article/details/37596763

建议三个网址都看看

auto fish =Sprite::create("help.png");
auto s =Director::getInstance()->getWinSize();
fish->setPosition(Point(s.width- fish->getContentSize().width/2,s.height/2));
//this->addChild(fish);
//Assert failed: GridActions can only used on NodeGrid
// Assertion failed!
//
auto nodeGrid = NodeGrid::create();
nodeGrid->addChild(fish);
this->addChild(nodeGrid);
//create(float duration, const Size& gridSize, unsigned int waves, float amplitude, bool horizontal, bool vertical);
auto waves = Waves::create(5, fish->getContentSize(), 3, 10, true, true);

nodeGrid->runAction(RepeatForever::create(waves));

怎么实现全屏震动呢,而且必须要要震动的东西先添加到nodeGrid,感觉也是很不方便!