The images will be set X=0 Y=0 aslong as the image itself doesn't use embedded coordinates (you need to make sure of this as to avoid conflicts). I haven't really used or tested the PNG Grab feature, I stick to the old fashioned way of defining the images and their proporties in IMAGES.DDF.
If it's a projectile you need give it the same Y offset as the actual image but half. If the projectile is in a 64x64 image, it would X=0 Y=32.
That's about as much help as I can provide I think.
EDIT: ATTACKS don't clip while THINGS do. No idea why. When this is an issue I try to work around it.
Images/PNG Grab
Images/PNG Grab
- Public Repository for 3DGE 64.
Re: Images/PNG Grab
The problem here is this, in DDFIMAGE:
[SPR:YFLRA0]
IMAGE_DATA=LUMP:PNG:"YFLRA0.PNG";
X_OFFSET=0;
Y_OFFSET=0;
SPECIAL=FORCE_CLAMP;
FIX_TRANS=BLACKEN;
For grAb, you don't specify offsets at ALL in Images.DDF -- even if the expected offset is 0,0 in grAb. If you use the OFFSET system via DDF, it will redefine these to 3DGE's standard 0,0 coordinates, which are completely different and useless for images that use grAb.
Rule of thumb -- for grAb, don't use X_OFFSET or Y_OFFSET in Images and let the grAb struct do the rest =)
[SPR:YFLRA0]
IMAGE_DATA=LUMP:PNG:"YFLRA0.PNG";
X_OFFSET=0;
Y_OFFSET=0;
SPECIAL=FORCE_CLAMP;
FIX_TRANS=BLACKEN;
For grAb, you don't specify offsets at ALL in Images.DDF -- even if the expected offset is 0,0 in grAb. If you use the OFFSET system via DDF, it will redefine these to 3DGE's standard 0,0 coordinates, which are completely different and useless for images that use grAb.
Rule of thumb -- for grAb, don't use X_OFFSET or Y_OFFSET in Images and let the grAb struct do the rest =)
\(סּںסּَ` )/ۜ
Re: Images/PNG Grab
I've had some issues myself. It just doesn't seem to work properly. I'm using PNG images for an enemy with embedded offsets and without any entries in IMAGES.DDF but 3DGE appears to be doing something wrong. It's not centered but it not the correct offset either.
Does 3DGE assume the graphic is a HUD sprite (weapons), graphic (centered) or world sprite (enemy, items, etc)?
Does 3DGE assume the graphic is a HUD sprite (weapons), graphic (centered) or world sprite (enemy, items, etc)?
Re: Images/PNG Grab
\(סּںסּَ` )/ۜ
Who is online
Users browsing this forum: No registered users and 2 guests