The problem of using cocos2d-x 2.1 ,2.0.4 is normal!

I define a extends CCNode class,this class of added frame by frame animation and some other special skills。

Transparent regional problems, it feels like is layered, ran to the top of the whole scene。

Open the UI and so on other interface. player belongs to the map layer, but at this time but he ran to the UI layer above。

Feeling is the map layer and characters of the surrounding area to be automatic interception and on the scene after the top!

It’s strange!

Upgraded to 2.1 appears the question, before is correct!

Did you try 2d projection?
If it still can’t work, could you provide a demo to reproduce this issue?

James Chen wrote:

Did you try 2d projection?
If it still can’t work, could you provide a demo to reproduce this issue?

Thank you! After a night spent carefully, will set up the hierarchy of elves method made a mistake. reorderChild
Mistaken for setVertexZ. You are right, thank you