[Resolved]Preloading textures with plist does not work

[Resolved]Preloading textures with plist does not work
0.0 0


Hi, i am developing a game and encountered this problem. I set both the plist and the png files in Resources.js, preload it then but whenever i want to get the sprite frame from the cache, it returns null and logs an error message about it. Every sprite creation part of code fails when loading images from plist/png pair. However, sprites work correctly when created from single files, where can the problem be?

Thanks for your help.


Hi, can you show a bit of your code please?


Hi, i already resolved it, i wasn’t actually loading the sprite sheet using cc.SpriteFrameCache.addSpriteFrames.