hai to all , I am learning cocos2d .In that we have multiple layers in single scene Know. I want to manage both layers at a time .I,e. first scene with 480X320 image and second one also with same size .here second one only getting visible .Thts ok .But whenever touch occurs I want to add another sprite to both of the layers (different sprites for each).could any one help this . Thanks All
A:
Why are you using multiple layers? Layers are for grouping multiple objects so that you can apply effects like movement to all nodes of the layer.
It sounds to me as if you should just be adding sprites to one layer. And if you add two sprites at fullscreen size, one will be on top of the other regardless unless it has transparent parts in the image.
GamingHorror
2010-07-30 21:04:49