Hi there,
I have a LayerB that inherits from LayerA.
Inside LayerA they are added some nodes , imagine SpriteX and SpriteZ
Inside LayerB , SpriteW is added.
Each sprites have their own eventGraphPriorityListeners.
The code is something like this
Inside B
LayerB::init(){
if(! LayerA::init() ){
return false;
}
SpriteW::create();
addchild(SpriteW,1);
}
Inside A:
LayerA::init(){
SpriteX::create();
addchild(SpriteX,10);
SpriteZ::create();
addchild(SpriteZ,10);
}
I am seeing that sometimes, the event listener associated to LayerA are not called since they are being ate by SpriteW.
How thats possible?
I am doing something wrong?