Take the texture for the missile for example:
Code: Select all
<weaponAnim name="missiles_1">
<sheet>missiles_1</sheet>
<desc length="3" x="0" y="0"/>
<chargedFrame>0</chargedFrame>
<fireFrame>1</fireFrame>
<firePoint x="15" y="20"/>
<mountPoint x="7" y="30"/>
<chargeImage>weapons/missiles_1_glow.png</chargeImage>
</weaponAnim>
However when I use Photoshop to try and align the images there seem to be some 20 pixels that aren't accounted for on the x-axis and just 2-3 pixels on the y-axis. The way I "align" them is simply to divide the image by the number in "desc length"-attribute, then flip it 90 degree. It's also then the same width and height as the "fh" and "fw"-attributes in the "animSheet"-tag.
Anyone noticed a similar problem or know if there are some other offset-attributes? Some things I've got suspicions with are the rotating of the image with 90 degrees, that it might not rotate over the center or something. There are some x- and y-coordinates in the img-tagg in the ship's XML-file too but changing those doesn't appear to do anything, except settings them to 0 crashes the game...