Breaking News
Home / Tag Archives: Cocos2D (page 2)

Tag Archives: Cocos2D

When you transition scene in cocos2d what methods do get called?

The following three callback methods are called when one Scene is transitioned into another in Cocos2D. –(void) onEnter { // Called right after a node’s init method is called. // If using a CCTransitionScene: called when the transition begins. [super onEnter]; }   –(void) onEnterTransitionDidFinish { // Called right after …

Read More »

Can’t create Texture. UIImage is nil in Cocos2D

<!–?xml version=”1.0″ encoding=”UTF-8″?–> Issue 2012-02-05 23:34:43.968 EngGame[1242:3f03] <0x108d700 Properties.m:(55)> [Properties] in : loadFromUrl(…) 2012-02-05 23:34:43.989 EngGame[1242:707] cocos2d: CCTexture2D. Can’t create Texture. UIImage is nil 2012-02-05 23:34:43.990 EngGame[1242:707] cocos2d: Couldn’t add image:background.png in CCTextureCache 2012-02-05 23:34:43.992 EngGame[1242:707] *** Assertion failure in -[GameLayer addChild:], /workspace/projects/iphone/game/libs/cocos2d/CCNode.m:413 2012-02-05 23:34:43.994 EngGame[1242:707] *** Terminating app due …

Read More »

How to clean Cocos2d cache?

Answer The Cocos2D framework  caches a lot of objects in memory like Textures, Sprites etc. to application increase performance by avoiding repititive loading overheads. When the device is about to run out of memory the iOS would invoke the applicationDidReceiveMemoryWarning handler. It is then we can invoke the  following methods …

Read More »
Advertisment ad adsense adlogger