@scream_cha wrote:
While making GoToMainMenuScene() function, I've faced problem with TransitionFade::create() function. Here is my function:
void GoToMainMenuScene(Ref *pSender) { auto scene = MainMenuScene::createScene(); Director::getInstance()->replaceScene(TransitionFade::create(TRANSITION_TIME, scene )); }
Where TRANSITION_TIME is defined in this way:
#define TRANSITION_TIME 0.5
Eclipse says, that no matching function for call to 'cocos2d::TransitionFade::create(double, MainMenuScene*&)'
What am I supposed to do with this?Thanks a lot for your help!
Posts: 6
Participants: 2