Thu, 19 Feb 2015 06:35:41 GMT
i was able to generate a plist file using TexturePacker and load the plist file into my project Asserts->Resource directory.
i am using the following code to access the plist file and access a sprite from that file .
//For accessing the plist file
//accessig the sprite
mySprite = Sprite::createWithSpriteFrameName("c0011.png");
But when i run the app i get runtime error stating "access violation". i am newbie to cocos2d-x please help me.
Thu, 19 Feb 2015 07:50:20 GMT
You can do TextureCache::getInstance()->getCachedTextureInfo() after loading the plist to verify that the texture has loaded into memory.
You can check your plist file to make sure it has the name "c0011.png" in it and it's not prefixed with anything.
You can try it on a different platform like Windows, Android, iOS, etc. to see if it works there. It might have something to do with the way WP8 handles assets. I've never tried it on WP so I cannot really help you.