Sprites Offset

Are you experiencing a problem? Maybe you can't get your scripts to do what you need, or are frustrated by a feature you just can't seem to get working? Let us know about it here and we will try our best to help you out!
Post Reply
johannharding
Posts: 14
Joined: Sat Jul 28, 2012 7:40 am

Sprites Offset

Post 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

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: Sprites Offset

Post 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).
\(סּںסּَ` )/ۜ

johannharding
Posts: 14
Joined: Sat Jul 28, 2012 7:40 am

Re: Sprites Offset

Post 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

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: Sprites Offset

Post 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.
\(סּںסּَ` )/ۜ

johannharding
Posts: 14
Joined: Sat Jul 28, 2012 7:40 am

Re: Sprites Offset

Post 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
=(

User avatar
Corbachu
Site Admin
Posts: 778
Joined: Fri Jun 08, 2012 11:22 am
Gender:
Contact:

Re: Sprites Offset

Post by Corbachu »

Attach your DEBUG file so I can see what's happening.
\(סּںסּَ` )/ۜ

Return to “Support and Help”