Hi, try setting the local zorder. From the setlocalzroder documentation:
“If two nodes have the same LocalZOrder, then the node that was added first to the children’s array will be in front of the other node”.
Thanks - but I tried setting local and global, setting before and after adding to the scene and adding the layers to teh scene in different order - but the debug layer still always gets displayed behind the ‘game’ layer.
Debug Layer draws primitive and other shapes with respect of 0 zOrder. So if you want to display everything right then you have to use lower zOrder ( <= -1 ) for your Layer childrens
@vikaspatidar Hmmm - thanks for that info. I think that I did use negative (as well as trying various positive values) but I will check tonight and try again!