Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Sprite Sheet Packer

Author
Message
Luca91
12
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 22nd Sep 2012 02:03
Hello,

I'm trying to make a series of animation frames on one image. I've every frame on png files (ie 0.png , 1.png , 2.png ecc.. ), for a total of 21 frames ( so 21 png files ).

I wonder if exist a program that auto-make a sprite sheet from those single png frames. Can anybody help me ?

Thanks
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 22nd Sep 2012 02:07
There is the ImageJoiner tool which comes with AppGameKit (check IDE\utilities folder) but I haven't personally used it. Presumably you're asking because you'd like to make an animated sprite? If the imageJoiner doesn't work out, you can do it manually with the AddSpriteAnimationFrame(spr,img).

Luca91
12
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 22nd Sep 2012 02:12
Quote: "There is the ImageJoiner tool which comes with AppGameKit (check IDE\utilities folder) but I haven't personally used it. Presumably you're asking because you'd like to make an animated sprite? If the imageJoiner doesn't work out, you can do it manually with the AddSpriteAnimationFrame(spr,img)."


Thank you for your reply. I havent IDE\utility folder, maybe because I'm using trial version

are there any alternatives ?
Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 22nd Sep 2012 07:07
I make these by hand in photoshop since I can get exactly what I want.

I have used this one:

https://github.com/dennissimon/SpriteSheetGenerator
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 22nd Sep 2012 09:11
I made this utility but some people said it didn't work for them: http://forum.thegamecreators.com/?m=forum_view&t=190532&b=41
I was planning on making a new version in AppGameKit but haven't got around to it yet... It is possible using AppGameKit getImage to create your own sprite sheets.


this.mess = abs(sin(times#))
Luca91
12
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 24th Sep 2012 17:07 Edited at: 24th Sep 2012 17:26
I purchased the full AppGameKit, and now I can use "ImageJoiner".

Now I can make a Sprite Sheet , but I've another probelm:
it seems that LoadImage() ignore the subimages.txt , so when I call PlaySprite() , the frames are displayed in wrong order.

How can I fix this ? thank you very much

PS: I'm using SetSpriteAnimation() , is it ok ?
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 24th Sep 2012 17:25
don't use imagejoiner to pack animated sprites.
imagejoiner does not keep the sequence of your sprites one after the other
Luca91
12
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 24th Sep 2012 17:37 Edited at: 24th Sep 2012 17:49
Quote: "imagejoiner does not keep the sequence of your sprites one after the other"


YEAH! that's the real problem !


EDIT: Well, I've solved this problem using the tool by baxlash by the way I'd like to know if there is a way to make ImageJoiner to work or to load the subimages.txt file properly
Kobaltic
12
Years of Service
User Offline
Joined: 24th Jan 2012
Location: PA, USA
Posted: 24th Sep 2012 18:39
Use a gosub command when working with sprites instead of a function command. Here is my subimages information. (I got these from Cliff so Cliff deserves the credit.)

Here is the code in main


Here is the walls2_subimages.agc. Your subimages.txt must have the same same as your .png file.


Here is the walls2 subimages.txt (the name of the file is walls2 subimages.txt that is because my .png is walls2.png. If you change that to your own .png file make sure you change the subimages.txt name to reflect that.

Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 24th Sep 2012 19:05
Quote: "Use a gosub command when working with sprites instead of a function command. Here is my subimages information. (I got these from Cliff so Cliff deserves the credit.)"

All the credit i nead! Is that you share wath you learned from me with others

Android 2.3 Gingerbread , ZTE Skate , 480x800 , 800 mhz cpu , Samsung Galaxy Y , 240x320 , 832 mhz cpu
Android 4.0 Sandwich , Dmtech 3g 9738B , 1024x768 , 9.7 inches , cortex A8 1.2 cpu , 1 gb ram.
Luca91
12
Years of Service
User Offline
Joined: 1st Sep 2012
Location: Italy
Posted: 24th Sep 2012 20:16
Works perfectly ! thanks
Spacebuddy
13
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 25th Sep 2012 01:39
I use this program for my sprites.
http://www.xshld.com/splicer.html
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 25th Sep 2012 01:45
Shudder...

Why did they have to use spiders as the example?

Cheers,
Ancient Lady
AGK Community Tester

Login to post a reply

Server time is: 2024-11-27 17:00:06
Your offset time is: 2024-11-27 17:00:06