Hi all,
@ //Working…
//CCScene* GameEnd = GameOver::scene();
//CCTransitionScene **transition = CCTransitionFade::create;
//CCDirector::sharedDirector->replaceScene;
//New
nextScene = GameOver::scene;
CCDelayTime**delay = CCDelayTime::create(2.0f);
CCCallFunc callSelectorAction = CCCallFuncN::create);
CCScene GameEnd = GameOver::scene();
CCSequence changeScene = CCSequence::createWithTwoActions;
runAction;
void HelloWorld::NextScene
{
CCScene GameEnd = static_cast<HelloWorld *>(node)->nextScene;
CCTransitionScene *transition = CCTransitionFade::create(1.0f, GameEnd);
CCDirector::sharedDirector()->replaceScene(transition);
}@
I’m trying to delay the scene transition by a second before it moves to our gameover scene. The problem is, it crashes on the 3rd line of the Next Scene function. Any ideas on how to delay the transition?
Any suggestion would be greatly appreciated.
Thanks,
Dean