How to hide the label (CCLabel) after a certain time in cocos2d ?
- by srikanth rongali
I added a label by using CCLabel to my layer. Now I want it do disappear after some time like (2sec). How can I make it to disappear?
CCLabel *labelPerfectDraw = [CCLabel labelWithString:@"Perfect Draw" fontName:@"Marker Felt" fontSize:30 ];
labelPerfectDraw.color = ccc3(0x00, 0x00, 0xff);
labelPerfectDraw.position = ccp(windowSize.width/2, windowSize.height/2+80);
[self addChild:labelPerfectDraw];
I added label in above way.
Please give me the idea how can I work on it?