Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: InCreator on Sun 02/09/2007 16:49:43

Title: Suggestion: Pixel offset for tiled import
Post by: InCreator on Sun 02/09/2007 16:49:43
Not sure if it's suggested yet, but variable X and Y pixel offset for tiled sprite import would be nice.
Simply because it's really hard to draw tile/sprite -sheets without visible border on each frame and it would be helpful to have custom offset to "jump" over borders.

Because if the sprites are drawn as AGS suggests - without any separation, it's hell of a math to determine how big should the import drag-box be and even worse to edit the sheet later. Atleast my sprite sheets, especially animations, are never "finally done" before I test them in AGS and usually, I have to fix the sprites here and there, import again, etc. Custom offset could easen things alot.

Until then, I'm using Game Maker (It has near-perfect system for this, with both cell and pixel separations) to extract sprites from sheet and copy-paste them over to AGS... But seeing this really useful, I think that AGS deserves better sheet handling too.
Title: Re: Suggestion: Pixel offset for tiled import
Post by: MrColossal on Sun 02/09/2007 17:05:28
why not just use GIF or FLC and copy paste over any frames that need correcting?

to use AGS's current system lay your sprite sheet out in a 1 row line, add a pixel row on the bottom and draw a line that length of the frame

OOOOOOOOO

then you can draw the import box correctly and drag it over for import.

Or you can do this with a multi-row image
_
|OOOOO
OOOOO
OOOOO

do I make sense without having to upload a picture?
Title: Re: Suggestion: Pixel offset for tiled import
Post by: Pumaman on Sun 02/09/2007 17:28:27
So basically you'd want to have like a 1-pixel border between each tile so that it's easier to manage? It sounds like a reasonable request.
Title: Re: Suggestion: Pixel offset for tiled import
Post by: Khris on Sun 02/09/2007 17:47:30
I use the paint program's customizable grid to arrange my sprites on the sheet.
Zing - problem solved.
Title: Re: Suggestion: Pixel offset for tiled import
Post by: InCreator on Mon 03/09/2007 11:04:00
QuoteSo basically you'd want to have like a 1-pixel border between each tile so that it's easier to manage? It sounds like a reasonable request.

That's what I thought of, yes.

It can be worked around, and it isn't that big hassle, but such addition would contribute for AGS being more user friendly. Of course, I don't know much about specifics and it would be a shame to waste CJ-s precious time on such thing, especially if it takes many programming hours or something. So, just a suggestion.

QuoteIt's hell of a math to determine how big should the import drag-box be and even worse to edit the sheet later.

I quote myself: sorry for being so stupid  :o
if I have frames imported, I don't have to edit sheet, but simply copy-paste frame from ags to paint program to edit and back. I simply didn't think of it  ???