Hi,
Once again, thanks so much for this tool, really helps. My question is on loading times and how I can reduce them. I've seen in some other posts that I can duplicate SkeletonData for the entity in question. If there is somewhere that this information is shared, I haven't been able to find it.
So I have an enemy class that extends to specific enemies. I load textureAtlases for these within my loading screen that uses the Libgdx AssetManager class. Then within the specific enemy class I load the Json files for the skeleton.
atlas = LoadingScreen.assetM.get("images/rCultistAtlas.txt", TextureAtlas.class);
skeletonJson = new SkeletonJson(atlas);
skeletonJson.setScale(.25f); // Load the skeleton at 60% the size it was in Spine.
skeletonData = skeletonJson.readSkeletonData(Gdx.files.internal("data/RCultist.json"));
skeleton = new Skeleton(skeletonData); skeleton.setPosition(getPosition().x, getPosition().y);
idleAnim = skeletonData.findAnimation("Idle");
walkAnim = skeletonData.findAnimation("Walk");
runAnim = skeletonData.findAnimation("Run");
There are about 20 animations, wanted to keep this short. This isn't too bad for 5 enemies to load. But 10 and it gets a little bit much, and I want to load quite a few enemies for a level, say 50. I did try loading them while in game, but that causes a long pause. I do know that I need to switch to Binary format, but I didn't think it would make a huge difference, so I'm hoping that copying the skeletonData is going to help some more, and doing all of this in the loading screen via AssetManager would also be a big help. Anyone have any advice? Thanks!
Bump, anyone have any direction?