I have the following code in my GameScene(inside the init method):
CCSize winSize = CCDirector::sharedDirector()~~>getWinSize;
CCLabelBMFont * scoreLabel ;
scoreLabel = CCLabelBMFont::labelWithString;
scoreLabel~~>setPosition( ccp( 100,100)) ;
It works ok, but when I try to use the code
inside the update method, the app chash?
Anyone has idea to fix this or why this is happening?