HugoMM Posted May 20, 2016 Share Posted May 20, 2016 I'm still new to Phaser, need some help on loading atlas. I used Texture Packer to output the "multi-pack" Phaser jsonhash atlas which give me 5 json files and 5 png files, for one long 200*300 animation. It seems I can not load them into the same "key" using game.load.atlas(). What's the solution to this? thanks. Link to comment Share on other sites More sharing options...
drhayes Posted May 20, 2016 Share Posted May 20, 2016 How big are those 5 PNG files, like width and height in pixels? You might need to tell Texture Packer to make its exported PNGs bigger. Because you're right: they won't be the same key. It's much harder to make a single animation that spreads across more than a single atlas. Not impossible, just not a simple ".animations.add(blah blah blah)". Umz 1 Link to comment Share on other sites More sharing options...
HugoMM Posted May 21, 2016 Author Share Posted May 21, 2016 20 hours ago, drhayes said: How big are those 5 PNG files, like width and height in pixels? You might need to tell Texture Packer to make its exported PNGs bigger. Because you're right: they won't be the same key. It's much harder to make a single animation that spreads across more than a single atlas. Not impossible, just not a simple ".animations.add(blah blah blah)". they are 2048*2048. I'm a bit confused, could you please give more explanation on the solution? Link to comment Share on other sites More sharing options...
Recommended Posts