Hi to all,
I am trying to add two layers in one scene but i dont see the out put in second added layer. I am using the following code.
CCScene *scene;
@implementation DisplayLayer
-(id) init
{
if((self=[super init]))
{
}
return self;
}
@end
@implementation MainGamePlay
-(id) init
{
if((self=[super init]))
{
scene = [CCScene node];
DisplayLayer *layerObj = [DisplayLayer node];
[scene addChild:layerObj z:1];
[scene addChild:self z:2];
}
}
@end
I open the MainGamePlay layer and add both layers in the scene but I am unable to see the output that I am doing in layer DisplayLayer.
any thing i m doing wrong?
thanks in advance