Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
默认情况下,如果它们发生碰撞,新的精灵会重载前一个精灵(最新的显示在旧的之上)
我怎样才能以编程方式改变它?
谢谢
Sprite 绘制顺序取决于zOrder. 较高zOrder的精灵被绘制在较低的精灵之上zOrder。您可以更改为zOrder:
zOrder
- (void)reorderChild:(CCNode *)child z:(NSInteger)zOrder