Page 1 of 1

Sprite Sheet

Posted: Fri Jun 01, 2018 10:17 pm
by DiegoPro77
I've 26 frames/images for do an animation for an entity: how can i merge them in a single frame?

Re: Sprite Sheet

Posted: Fri Jun 01, 2018 11:08 pm
by darkfrei
DiegoPro77 wrote:I've 26 frames/images for do an animation for an entity: how can i merge them in a single frame?
viewtopic.php?f=34&t=5336&start=20#p335708
Put your images to the /Input/, start the script 4x8.

Re: Sprite Sheet

Posted: Sat Jun 02, 2018 12:45 pm
by DiegoPro77
It tells me that it can hurt my pc… :?

Re: Sprite Sheet

Posted: Sat Jun 02, 2018 2:38 pm
by darkfrei
DiegoPro77 wrote:It tells me that it can hurt my pc… :?
You can also download the last verson of ImageMagick here: http://www.imagemagick.org/script/download.php#windows
I think that portable version (now: ImageMagick-7.0.7-37-portable-Q16-x64.zip) is the best solution, so you can use only the part of this program.
Then use some easy .bat file:

Code: Select all

montage "Input/*.png" -geometry +0+0 -tile4x8 -background rgba(0,0,0,0) -quality 100% spritesheet_4x8.png

Re: Sprite Sheet

Posted: Sat Jun 02, 2018 7:35 pm
by DiegoPro77
Ok, but now i've another problem: the game recognize the sprite sheet, but as a single photo, and it tells me this...

Re: Sprite Sheet

Posted: Sat Jun 02, 2018 7:42 pm
by darkfrei
DiegoPro77 wrote:Ok, but now i've another problem: the game recognize the sprite sheet, but as a single photo, and it tells me this...
Is your image higher than 2048 or wider than 2048? This script will crop so much as possible white (alpha?) space about your images:

Code: Select all

magick "Input/*.png" -background none ^
   ( -clone 0--1 -layers merge ^
   -set option:cropper "%%[@]" +delete ) ^
   -crop %%[cropper] +repage ^
   MIFF:- | magick montage MIFF:- -background none ^
   -tile 4x8 -geometry +0+0 Output\best_spritesheet_4x8.png
Please attach your sprites or dimensions of them.

Re: Sprite Sheet

Posted: Sat Jun 02, 2018 9:58 pm
by Arch666Angel