help cocos2d --> cocos2d-x

::cocos2d::

[voidNode addChild:bgSprite z:0 parallaxRatio:ccp(1.0f, 0) positionOffset:CGPointZero];

change

::cocos2d-x::
voidNode->addChild(bgSprite, 0)……… ??
what way (T_T);

voidNode->addChild(bgSprite, 0, ccp(1.0f, 0), CCPointZero);

Please refer to tests/ParallaxTest/ParallaxTest.cpp, start from line 50

s…sorry and thank you![](…

next reference Check remember)

thank u~