I’m trying to animate a blinking eyes for my project i already developed it on cocos2d for iphone, but when i’m trying to port it on cocos2d-x android it crashes
my code is ::
1) First i’m declare 2 sprite and 4 texture as follow to blink the eyes.
CCSprite spriteR = CCSprite::spriteWithFile;
CCSpritespriteL = CCSprite::spriteWithFile("l.png);
CCTexture2D *lOpenText = CCTextureCache::sharedTextureCache()~~>addImage;
CCTexture2D *rOpenText = CCTextureCache::sharedTextureCache~~>addImage;
CCTexture2D *lCloseText = CCTextureCache::sharedTextureCache~~>addImage;
CCTexture2D *rCloseText = CCTextureCache::sharedTextureCache~~>addImage;
then i called the function,
2) when ever i try to run this statement it crashes
i tried every thing i know, but still having this problem, i’m not quite sure its crashes due to setTexture or due to some other thing.