CCTransitionCrossFade::create desn't have withColor option?

CCTransitionCrossFade::create desn't have withColor option?
0.0 0


Hi there

I try to port it from cocos2d-iPhone
[CCTransitionCrossFade transitionWithDuration:1.0 scene:[HelloWorldLayer scene] withColor:ccc3(255, 255, 255)];

But, I tried, but I couldn’t

ccc3(255, 255, 255) can’t be for argument.

CCTransitionCrossFade *tran = CCTransitionCrossFade::create(1.0f, HelloWorldLayer::scene()/*, ccc3(255, 255, 255)*/);

CCTransitionCrossFade doesn’t support color??


CCTransitionCrossFade does not support color, it just crosses between 2 scenes. If you want to use color in scene transition use CCTransitionFade

CCDirector::sharedDirector()->replaceScene(CCTransitionFade::create(1.0, scene, ccc3(255, 255, 255)));

P.S. sorry for my english)


Hello Kate Naidina

Thank you for your replaying.

Oh, I just mistook CCTransitionCrossFade name.
Original Obj-C code was also CCTransitionFade :stuck_out_tongue:
But, you made me noticingmistook the class name.

Thank you.