Jump to content

Need help on Phaser atlas


HugoMM
 Share

Recommended Posts

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

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)".

Link to comment
Share on other sites

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...