Quantcast
Viewing all articles
Browse latest Browse all 17093

Problems with TransitionFade

@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

Read full topic


Viewing all articles
Browse latest Browse all 17093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>