Hai ,
i am new to Coco's.i want make a sprite invisible in a scene,(example suppose click the simulator the sprite will be invisible).how can i make these . i dervied these codes .i want to invisible a "sis.png"sprite when i click a simulator.how can i do.can any one explain these.
@implementation MenuScene
- (id) init {
self = [super init];
if (self != nil) {
Sprite * bg = [Sprite spriteWithFile:@"BG 2.png"];
[bg setPosition:ccp(240, 160)];
[self addChild:bg z:1];
Sprite * sis =[Sprite spriteWithFile:@"sis.png"];
[sis setPosition:ccp(50,50 )];
[self addChild:sis z:1];
[self addChild:[MenuLayer node] z:1];
}
return self;