Slick Forums

Discuss the Slick 2D Library
It is currently Wed Jun 19, 2013 5:06 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon Mar 26, 2007 2:58 am 
Offline

Joined: Wed Mar 21, 2007 7:59 pm
Posts: 96
Hey Guys,

i have a whole bunch of animations as seperate files, one file per frame. They are all the sime size and properly registered.

Whats the easiest way to assemble them into a single sprite sheet? I tried ImagePacker but from what I could figure out that seemed to be more for putting multiple sheets together into a combined sheet.

Thanks

JK


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 7:03 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
ImagePacker is the right tool to be using, add all the single images onto one sheet. You can then load the sheet using PackedSpriteSheet and reference individual elements by name. (this of course isn't great for indexed sprites)

If they're all equal sizes and indexed you might be better to just open paint and just stick them on an image - then use SpriteSheet.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 2:51 pm 
Offline

Joined: Wed Mar 21, 2007 7:59 pm
Posts: 96
Well,I tried assembling them in paint shop pro but they were too big for the snap to work reliably, it seemed.

Im re-writing my JAI ant task that I mispalced ages ago so I can write a down-scaling conversion scri[pt. Maybe Ill try again after Ive reduced their size.

Thanks

JK


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 4:50 pm 
Offline
Site Admin

Joined: Mon Nov 13, 2006 3:26 am
Posts: 121
i mostly do this by writing a quick java program that uses BufferedImage and ImageIO.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 6:11 pm 
Offline

Joined: Wed Mar 21, 2007 7:59 pm
Posts: 96
Well, if there isnt an existing tool Ill probably play with ant tasks for it...

JK


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group