Mike018 Posted August 26, 2017 Share Posted August 26, 2017 I have three atlases full of images that are pulled randomly with a method. Is there a way to find out which atlas has the graphic, like through a simple if statement? Like if the key isn't in this atlas, keep checking until it finds out which atlas it's in, then change the sprite's atlas to that. Link to comment Share on other sites More sharing options...
Braxen Posted September 5, 2017 Share Posted September 5, 2017 Same issue here, using unique frame names for objects, but no animations needed. My project has been laid on ice because i can't find a good solution for it. Link to comment Share on other sites More sharing options...
samme Posted September 5, 2017 Share Posted September 5, 2017 You can index them yourself. You can find all the frames in, e.g., game.cache.getFrameData(ATLAS_NAME).getFrames() , Link to comment Share on other sites More sharing options...
Recommended Posts