You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a sprite has a parent as a sprite batch node and that sprite is used in a CCMenuItemSprite then it should not be drawn by the menu parent. Rather, it should be drawn in the sprite batch.
The text was updated successfully, but these errors were encountered:
The problem with SpriteBatch is that it draws sprites relative to its own z-order. This is where the global-Z-order concept from cocos2d-x v3 is useful. Without applying the sprite batch to a global z ordering, the sprites that would be in the menu would be occluded by other sprites that occur after the sprite batch node in the node hierarchy.
If a sprite has a parent as a sprite batch node and that sprite is used in a CCMenuItemSprite then it should not be drawn by the menu parent. Rather, it should be drawn in the sprite batch.
The text was updated successfully, but these errors were encountered: