I want to apply opacity 0 in CCNode but there is no method setOpacity in CCNode. How can I do that . Please help me.
CCNodes are not rendered so there is nothing to set the opacity on (they are just containers for other CCObjects).
If you want to set the opacity for all sprites in the CCNode then you could loop round node->getChildren() and set the sprites opacity.
If you add CCRGBAProtocol to your base classes you will be able to set the opacity… but you have to write your own rendering code.
If you need to set opacity to 0, you can just use *setVisible( false )*