Problem in loading spritesheet (plist) file in to project only on windows phone

  • Evani Ram
    Likes 0

    Problem Description
    Hey can you tell me how to load  spritesheet into my project. i tried to add asserts from existing resources and also tried to add into the Resource folder in Root directory of the project . i am using the following code to access the plist file in my Project

    //Accessing the plist file from asserts->Resources
    CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("myPlist.plist");

    //Loading Single Image into Canvas from the Plist.
    image= CCSprite::createWithSpriteFrameName("frame-1.png");

    This code works perfectly in android .But when i try to load the plist file the app crashes with "access violation" exception.  
     
    It would be great if you guys can make a video on  loading asserts into windows phone (Visual Studio 201.3). i am new to the game development ,so please guide me on this issue.
  • Sonar Systems admin
    Likes 0

    Where have you put the spritesheet file?

  • Evani Ram
    Likes 0

    i tried to place the files in "Resources" folder of my game root directory.but when i load the project visual studio 2013 fails to load my spritesheet and the related .plist file into my project. i also tried to place file in Asserts → Resources directory by adding an existing item. Even though i have my plist file in  the project i get “access violation ” exception at runtime.i am new to game development. i tried the same in android by placing my plist files into Resources folder in root directory. build_native.py automatically adds into my project .

  • Sonar Systems admin
    Likes 0

    Does a fresh app work on your phone?

Login to reply