I spend a lot on my time for the simple things that I think about. I want to hide and show the sprite in the scene.
myS = [CCSprite spriteWithFile:@"Background_Pause_pad.png"]; [myS setPosition:ccp(384,470)]; myS.opacity = 0; [self addChild:myS z:1];
and when I need to display it ..
[myS runAction:[CCFadeIn actionWithDuration:1]]
and hide it
[myS runAction:[CCFadeOut actionWithDuration:1]]
but it doesnβt work ..... can anyone help plz?
source share