How to hide the label (CCLabel) after a certain time in cocos2d ?
Posted
by srikanth rongali
on Stack Overflow
See other posts from Stack Overflow
or by srikanth rongali
Published on 2010-03-19T13:13:15Z
Indexed on
2010/03/19
13:51 UTC
Read the original article
Hit count: 357
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?
© Stack Overflow or respective owner