Tag Info

New answers tagged

0

You say you have tried setting `ignoreAnchorPointForPosition(true), but have you tried setting it to false? CCLayer init method calls ignoreAnchorPointForPosition(true), which basically tells cocos to ignore the anchor point for positioning. You can set it to false and it should respect the anchor point for position.


0

its fixed now, onbegin always set the viewport. because onEnd method the viewport restored to the original screen viewport regardless its return to another fbo. so everytime more than > 1 deep will call viewport with scale of screen, this causing mess because the screen viewport has design ratio. so fix it by ensuring the viewport to original set for each ...


0

i have done like this to supprot multiple resolution............. my AppMacro.h #ifndef __APPMACROS_H__ #define __APPMACROS_H__ #include "cocos2d.h" #define DESIGN_RESOLUTION_480X320 0 #define DESIGN_RESOLUTION_480X320 1 #define DESIGN_RESOLUTION_1024X768 2 #define DESIGN_RESOLUTION_1280X800 3 #define DESIGN_RESOLUTION_2048X1536 4 /* If you ...



Top 50 recent answers are included