Hi i am loading my sprites from the server…
at first (old cc version)
i am able to do this
cc.loader.load('url.plist', function (atlas) {
var spriteFrame = atlas.getSpriteFrame('spriteFrameId.png');
sprite.spriteFrame = spriteFrame;
});
but now(latest cc version) when i do that i was getting the object version of the plist
it self and not a atlas.
how can i load my plist to a cc.SpriteAtlas
again with this new version of CococsCreator(1.1.1)?
nantas
#2
Say you have an atlas named ‘myAtlas.plist’ in resources
folder:
cc.loader.loadRes('myAtlas', cc.SpriteAtlas, function (err, atlas) {
var spriteFrame = atlas.getSpriteFrame('spriteFrameId');
})
rohitk
#3
What if we are loading myAtlas.plist’ from remote location let say www.xaddress.com/myAtlas.plist’ . how do we process?
brane7
#4
I am also curious How do I manage my assets when I build a divide?
The Atlas capacity is too large