Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   Gani Shop crashes when... (https://forums.graalonline.com/forums/showthread.php?t=83731)

Deeek 01-17-2009 07:26 AM

Gani Shop crashes when...
 
Well, I have a relatively large sprite sheet - about 498 x 1632 in dimension. The editor can load this image fine - the problem is when I use the grid feature to splice the image up into individual sprites (about 249 x 204 in dimension) to make into an animation, the editor crashes. I am, for the record, using Vista. Perhaps I am inputting the parameters in the wrong fields? It states here:
"Specify the rectangle of the image which is drawn"
x:0 , y:0
width: 0 height: 0
So, I input the image's dimensions as the width and height as so :
width: 498 height: 1632
"Instead of a single sprite you can also add an array of sprites, each of the specified width and height. A grid is laid on the image, starting at (x,y). The first sprite in the upper left corner get the sprite indexed typed in above."
grid width: grid height:
So I set x: and y: both to 1, to set them at the very upper left corner of the image, and the grid width and height to 249 x 204, respectively, to splice each individual sprite into a seperate image. As soon as I hit 'Add' the editor apparently becomes overwhelmed and crashes.

xXziroXx 01-17-2009 01:21 PM

I don't know what causes it, but if you fail to get it working you could always edit the gani parts into the file by using a text editor.

Deeek 01-17-2009 08:15 PM

Quote:

Originally Posted by xXziroXx (Post 1457692)
I don't know what causes it, but if you fail to get it working you could always edit the gani parts into the file by using a text editor.

How can I do that?

xXziroXx 01-17-2009 08:27 PM

PHP Code:

SPRITE NAME    index         image    x    y   width   height description 


Examples:

PHP Code:

SPRITE    0         SPRITES    0    0   24   12 shadow
SPRITE    2     letters
.png  224   96   16   32 Exclamation Mark
SPRITE   40           ATTR1    0    0   48   48 hat up 



All times are GMT +2. The time now is 12:21 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.