【发布时间】:2012-01-20 07:41:06
【问题描述】:
需要在运行时更改CCSprite 图像,我必须删除以前加载的图像并在NSTimer 的特定中间后显示新图像,我正在使用[imagesContainer removeChildByTag:0 cleanup:YES]; 但无法正常工作
任何帮助将不胜感激
【问题讨论】:
-
我在一个类似问题中看到以下标记为答案,但它无法实现这个 CCTexture2D* tex = [[CCTextureCache sharedTextureCache] addImage:@"new_image_name"]; [spriteWant2Change setTexture: tex]; \
标签: iphone cocos2d-iphone