i want to change a sprite texture dynamically within animation.here is my code..
smileTexture=[[CCTextureCache sharedTextureCache] addImage:@"Monkey-smile_pad.png"];
angryTexture=[[CCTextureCache sharedTextureCache] addImage:@"Monkey-angry_pad.png"];
and to change the texture of sprite _monkeyone i do this..
_monkeyOne.texture=smileTexture;
and it change the sprite texture successfully.....but it's instant....i want this change within animation duration.....
can anyone help me...??