In Step by Step Cocos2dxSimpleGame tutorial (Chapter 7 - Some Icing on the Cake), the author uses following code to create game over scene:
GameOverScene *gameOverScene = GameOverScene::node();
which node()is deprecated in cocos2d-x 2.0.1. So I try to replace with following:
GameOverScene *gameOverScene = GameOverScene::create();
but Xcode returns
Cannot initialize a variable of type 'GameOverScene *' with an value of type 'cocos2d::CCScene'
as they declared as different type (node() returns GameOverScene*, while create() returns cocos2d::CCScene).
So, what should I use to replace node()? Is create() the right way or I should use other function?