반응형
Cocos2D에서 생성해 준 Sprite의 이미지와 깊이값인 z 값(Z-Order) 값 Change
// Replacing image in sprite
// Change z-order in sprite
// Replacing image in sprite
[Sprite setTexture:[[CCTextureCache sharedTextureCache] addImage:@"newImage.png"]];
// Change z-order in sprite
[ self reorderChild:sprite z:newZ ];
반응형