How to calculate X/Y offsets for new bitmaps
Posted: Sun Aug 27, 2006 12:00 pm
From George Gilbert:
The y-offset for standard (pickupableupable) items / monsters / flooritems is the point in the graphic where the (depth) centre of it would touch the floor. For example, in a walking monster, it would be the centre of it's feet / for a pillar, it's the centre of the base in 3D (which is different from the base in 2D, as that would be the bottom of the image). For most images, the offset is about 3/4 of the height, but obviously depends on the perspective of the objects projection into 2D. The x-offset is ignored.
For wallitems, the offsets are the offsets relative to the centre of the wall (i.e. so an offset of 0,0 would place the item centrally on the wall).
For clouds and spells the offsets are ignored.
The y-offset for standard (pickupableupable) items / monsters / flooritems is the point in the graphic where the (depth) centre of it would touch the floor. For example, in a walking monster, it would be the centre of it's feet / for a pillar, it's the centre of the base in 3D (which is different from the base in 2D, as that would be the bottom of the image). For most images, the offset is about 3/4 of the height, but obviously depends on the perspective of the objects projection into 2D. The x-offset is ignored.
For wallitems, the offsets are the offsets relative to the centre of the wall (i.e. so an offset of 0,0 would place the item centrally on the wall).
For clouds and spells the offsets are ignored.