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 / Image Joiner order

Author
Message
gsdblack
12
Years of Service
User Offline
Joined: 6th Dec 2011
Location:
Posted: 3rd Jul 2012 09:59
How does the image joiner choose the order of the images/frames?
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 3rd Jul 2012 10:45
It's random I believe. There doesn't seem to be a way to make an ordered spritesheet using it (IE. one that can be animated in order using playSprite).


this.mess = abs(sin(times#))
DennisW
16
Years of Service
User Offline
Joined: 15th Jun 2008
Location: Ohio
Posted: 3rd Jul 2012 21:10
I did a test with the joiner see if this helps to figure things out. Or I might be on the wrong track. I made for images the same and a # in the middle then saved them frame_1 to 4 you can see the results'

Ham and Eggs Breakfast
The Chicken was involved the Pig was Committed

Attachments

Login to view attachments
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 3rd Jul 2012 23:03
The image joiner is originally from DarkLights where is was used to pack polygons tightly onto textures, so it isn't perfect if you need a particular order.

If I remember correctly it orders the images by size and then starting with the largest it places them to the right or below an existing image where space allows.
gsdblack
12
Years of Service
User Offline
Joined: 6th Dec 2011
Location:
Posted: 5th Jul 2012 12:05
Thanks guys I looked at DennisW example and I think I got it. If I want frame 1 to be the first frame I have to name it frame_4
MarcoBruti
13
Years of Service
User Offline
Joined: 20th Nov 2011
Location: Caput Mundi
Posted: 6th Jul 2012 15:55
thanks, I used ImageJoiner to create sprite sheet for animation sequences, but it randomizes the sequence, so it is almost unusable. I'll apply your suggestion...
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 7th Jul 2012 11:16
From what I have seen, the image joiner works pretty well if you mange an image that is 1 row of frames only. But it places them backwards and therefore, yor first frame should be named "filename99.png", the next one should be "filename98.png" and then 97,96 and so on. As for images with multiple rows, I think it starts in the top right corner, and goes downward..

Login to post a reply

Server time is: 2024-11-23 18:04:04
Your offset time is: 2024-11-23 18:04:04