Page 1 of 1

Sprites Offset

Posted: Sun Aug 26, 2012 9:24 am
by johannharding
Hi anyone has time to explane me properly how to set the y and the x of a sprite my tables a floating in the air. :(
I use DoomBuilder 2, Slade 3. http://www.youtube.com/watch?v=L_vPg-ODPVM&feature=plcp

Re: Sprites Offset

Posted: Sun Aug 26, 2012 11:17 am
by Corbachu
You will need to define the offsets in IMAGES.DDF if you haven't already.

Code: Select all

X_OFFSET [integer] The X offset for sprites. 
Y_OFFSET  [integer] The Y offset for sprites. 
This is assuming your images are external (JPG, PNG, or TGA).

Re: Sprites Offset

Posted: Sun Aug 26, 2012 11:44 am
by johannharding
the file is internal.

Thing.ddf
[WOOD_TABLE:2080]
RADIUS=32;
HEIGHT=32;
SPECIAL=SOLID;

STATES(IDLE)=WOTA:A:1:NORMAL:NOTHING;

WOTAA1.png in the wad

Re: Sprites Offset

Posted: Sun Aug 26, 2012 12:56 pm
by Corbachu
Find the [WOTAA1] entry in IMAGES.DDF and add the X/Y Offset code I provided. That way you can tweak it until it sits normal (so probably the Y offset). Usually for images the offsets can only be tweaked in IMAGES.ddf.

Re: Sprites Offset

Posted: Mon Aug 27, 2012 5:34 am
by johannharding
image.dff
[spr:WOTAA1]
IMAGE_DATA=FILE:"c:\RISE\DATA\GRAPHIC\TABLEPNG.png";
SCALE=1;
Y_OFFSET=0;

thing.dff
[WOOD_TABLE:2080]
RADIUS=32;
HEIGHT=32;
SPECIAL=SOLID;

STATES(IDLE)=WOTA:A:1:NORMAL:NOTHING;

Only yellow ? appear instead of the table http://www.youtube.com/watch?v=ZwifRteu ... e=youtu.be
=(

Re: Sprites Offset

Posted: Tue Aug 28, 2012 11:01 pm
by Corbachu
Attach your DEBUG file so I can see what's happening.