Well Explain by Rubby Entertainment and William Thurston.
Actually my problem solved but I want to clearify it…So I done what you guy said was also not working…Just what I did
in .h File
in .cpp File
// ‘scene’ is an autorelease object
CCScene *scene = CCScene::node();
// ‘layer’ is an autorelease object
newLayer = HelloWorld::node();
// add layer as a child to scene
// return the scene
Now I want to use newLayer throug out the class how i do this, Simply that is my problem….but I understand that param “this” exactly belong to HelloWorld class but I just want to clearify my problem.
Thanks for all your efforts.