GB2ShapeCache Remove plist - Physics Editor - cocos2d-iphone

Could someone please advise how to remove plist from GB2ShapeCache sharedcache. I have been googling around but no luck. I could find any remove methods in the GB2ShapeCache class.
This class is the way to load plist of physics shapes into cocos2d/box2d project.

Related

A tip on the way forward for using many sprite sheets in a 2D video game

What would you advise me to do to properly manage the loading and management of more animations and where can I find some code C++ examples ?

Combine different parts of sprites to form a single sprite in cocos2d-x in ios game using c++

I am starter in cocos2d-x.I have multiple sprites of arms legs eyes etc.i want to create a single sprite ,suppose a human out of it who has arms,legs,eyes,head,body etc.How to do it..As i have to animate them and make the human walking and also i have to kill it on touch.Any one here please tell me the logic in cocos2d-x using c++
CocosBuilder can be used for assembling the body parts. By laying down each sprite to its own layer, you can also animate them, create different animations for walking, dying.
Tutorials :
http://www.raywenderlich.com/23996/introduction-to-cocosbuilder
http://www.plungeinteractive.com/blog/2012/10/29/using-cocosbuilder-on-cocos2d-x-games/
There is another way of using it.We can use cocostudio also and export the file as JSON
Refer to this link
http://upyun.cocimg.com/CocoStudio/helpdoc/v1.0.0.0/en/index.html

How to get fixture of Custom shape body?

I just want to ask that I have my custom shape physical body, let say, I have a STAR having four outside and four inside vertices, and made with Physics Editor.
By using that Plist generated by Physics Editor, the body shows and behaving just perfect, but problem is that I could not get fixture(s) of that custom shape to get collision detection or any thing else.
So, how could I get the fixture(s) of custom physical shape body made with physics editor, so I can detect collision?
P.S: I have MyContactListener class that is working fine with basic shapes like circle and line.
Thanks in advance.

Cocos2d load animation from plist

I have found this link for understanding how to create animation path for sprite using Adobe tools and plist file. But I still can't figure out how to create parser for this file. Is there already made solution how to do it or do I need to create it in my own?
This will parse the file, load the texture, and create all the spriteFrame objects you need:
[[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:#"myFrames.plist"];

Cocos2d change image of hero in accelerometer when an object hits it

Hi. I am new on this website and also in cocos2d. I am a student and I need your help.
I am making a game based on one of the tutorials in a cocos2d game development book. The concept is simple; different objects are falling from the top of the screen and I have to avoid or catch them by tilting the device. The main character, which is one which has to avoid objects, has different properties which can change by grabbing different objects (e.g. the player may have a shield if it grabs one). In order to display the shield I have to change the sprite of the player. I am not sure how I can achieve this. Could anyone help me in providing some guidelines on this?
Use setTexture to switch the image (texture) of your current sprite with another:
[playerSprite setTexture:[[CCTextureCache sharedTextureCache] addImage:#"playerWithShield.png"]];