Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Size restrictions for sprite sheets?

Community Beginner ,
Sep 19, 2017 Sep 19, 2017

I'm trying to save a sprite sheet that is 347 x 11,766 in animate cc but it keeps snapping back to 347 x 8192. Did I miss something in setting up my publishing settings, or is there another work around to this issue?

3.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 19, 2017 Sep 19, 2017

The sprite sheet size is usually dependent on what the GPU abilities are of the device you want to run on. If you're ok with only using more recent mobile devices you might limit to 2048 across. If you want older devices to have a chance you would limit to 1024. If you don't care about performance or memory you could use up to 8192.

Whatever you use, as many PNGs as is needed are created, and the one text file that is exported controls all of them.

If you're doing HTML5 Canvas, and not WebGL, then

...
Translate
LEGEND ,
Sep 19, 2017 Sep 19, 2017
LATEST

The sprite sheet size is usually dependent on what the GPU abilities are of the device you want to run on. If you're ok with only using more recent mobile devices you might limit to 2048 across. If you want older devices to have a chance you would limit to 1024. If you don't care about performance or memory you could use up to 8192.

Whatever you use, as many PNGs as is needed are created, and the one text file that is exported controls all of them.

If you're doing HTML5 Canvas, and not WebGL, then the GPU side of things doesn't matter, but you have to live within the limits of bitmap sizes. For your example it would mean that two images are downloaded instead of one, which would be a small overhead on the page load.

Something else, sprite sheets don't have to be a long thin strip, have you tried setting the sprite sheet to be 1024x4096? What you have very nearly fits inside 2048x2048.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines