Cocos2d-x: Pass Parameters Between Scenes


if I placed this code

Director::getInstance()->replaceScene(Worksheet_ID_ReplaceScene::createScene(_worksheetIDCurrent,_GroupKey_ID.c_str()));

then it worked fine

but if added TransitionFade in code

Director::getInstance()->replaceScene(TransitionFade::create(1.0,Worksheet_ID_ReplaceScene::createScene(_worksheetIDCurrent,_GroupKey_ID.c_str())));

then it return error



Source link

More To Explore

Share on facebook
Share on twitter
Share on linkedin
Share on email