iOS and Cocos2d - Changing CCSprite's image AND new dimensions = FAIL
问题 One of the powerups in my game is a decrease in size of the main sprite. So for memory sake, instead of looping a sprite.scale through each frame, I resaved the sprite at a percentage size lower than the original sprite, and just wish to replace it. Then once "death" occurs or timer runs out, the original sprite returns. So, I am using this code for making it small: [player setTexture:[[CCTextureCache sharedTextureCache] addImage:@"player-small.png"]]; and this code for resetting back to