ccsprite
Is there a performance penalty for large CCSprites that are mostly transparent?
I have some CCSprites that are children of a CCParallaxNode that scroll horizontally.They are all the same size, i.e, 2048X640 (for the -hd versions, 1024X320 for the non-hd), but they cont开发者_如何[详细]
2023-03-15 01:12 分类:问答can I add same ccspirit object after remove it?
I have total 20 images in NSMutableArray of ccspirit objects, and I want to show them on screen moving moving upward, I add them to as [self addChild:p] as below[详细]
2023-03-15 00:57 分类:问答How do i make a function that loops, and changes sprite's position?
so i need a function or something that can make my 2 sprites move up and down, all the time! from the app starts with out anything have been touched on the screen..[详细]
2023-03-13 15:13 分类:问答CCSprite Color Blend Similar to kCGBlendModeColor on UIImage
I am trying to overlay color on a sprite image and have questions about how to blend the color with the sprite. I\'ve used the following updateImageTint routine to overlay color on a UIImage and the o[详细]
2023-03-12 21:10 分类:问答Cocos2D Rotation and Anchor point
The problem that I have is that when ever I change the anchor point sprite automatically rotates with respect to the current anchor point. And I don\'t want that to happen.[详细]
2023-03-11 20:13 分类:问答Scaling Textures Correctly
Okay, I am going to post some code so you can see what I am doing and then at the end I will ask my question.[详细]
2023-03-02 12:11 分类:问答Unable to load the frame cocos2d for Android
I am trying to draw one sprite from atlas.. I created with Zwoptex the atlas and the plist file. put the two files in the assest folder..[详细]
2023-03-01 11:04 分类:问答cocos2d: alloc ccsprite memory 4MB, adding as child to scenes mem=11MB
i have started with helloworld template. added some menu and started performance tool->allocation. result: 1.9MB[详细]
2023-02-22 04:32 分类:问答How to get a CCSprite to follow users touch with ccTouchMoved
I want to be able to move certain sprite images with the users touch. Something along these lines: - (void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event[详细]
2023-02-19 04:03 分类:问答Cocos2d draw a polygon using CCSprite
Can you help. Want to draw a polygon (beams at different angles) and apply box 2d body 开发者_如何学Goto it. Can you please let me know how to create a CCSprite with a polygon shape[详细]
2023-02-18 21:12 分类:问答