Search code examples
cocos2d-x

How can I use SCENE_CREATE_FUNC() when extending CCScene in cocos2d-x?


I have read this question carefully ---- Using CREATE_FUNC in Cocos2dx. Today I found some code used SCENE_CREATE_FUNC() , but when I tried to use it in my Custom CCScene .There is always an error.


Solution

  • I have found that new version of cocos2d-x have remove the SCENE_CREATE_FUNC function. It suggests to use CREATE_FUNC .

    reference:

    1. http://www.cocos2d-x.org/issues/1442
    2. https://github.com/cocos2d/cocos2d-x/pull/1246