Is it possible to convert a CCSpriteFrame that was taken from CCSpriteFrameCache, and convert it into a texture that can be set on a sprite texture property?
Is it possible to convert a CCSpriteFrame that was taken from CCSpriteFrameCache , and
Share
Assuming your CCSpriteFrame is named
frameyou can use:to change the sprite’s frame if it uses the same texture. If the texture is not the same, you must create a new sprite:
But since you already have the CCSpriteFrame you can just as well call initWithFrame: