Hi guys,
I have one skeleton, multiples animations and multiples skins. All my assets can't fit in one atlas so I export them in 2 atlases from Texture Packer.
But know I don't know how to deal with my two atlases. So far I initialized my character like this :
var texture:Texture = Texture.fromBitmap(new SpineBoyAtlasTexture());
var xml:XML = XML(new SpineBoyAtlasXml());
var atlas:TextureAtlas = new TextureAtlas(texture, xml);
var json:SkeletonJson = new SkeletonJson(new StarlingAtlasAttachmentLoader(atlas));
var skeletonData:SkeletonData = json.readSkeletonData(new SpineBoyJson());
var stateData:AnimationStateData = new AnimationStateData(skeletonData);
_skeleton = new SkeletonAnimationSprite(skeletonData);
_skeleton.setAnimationStateData(stateData);
var spineCS:CitrusSprite = new CitrusSprite("test",{view:_skeleton});
add(spineCS);
So I have one SekeletonJson which uses an AtlasAttachementLoader which uses one Atlas. Then the SkeletonJson is used to initialize the SekeletonData.
So How can I set-up more than one Atlas ? It's not really clear in my head. I have read about AttachmentLoader but don't really understand how it can help me in that case. I'm pretty new on Spine so I'm a bit lost here.
Thanks