Re: [Modding]Creating your own weapons
Posted: Mon Apr 14, 2014 6:53 pm
I understand the tutorial is a bit outdated, which is why I'm leaving a post here. I made a weapon that used basic sprites, the weapon worked fine. Today I tried to make a custom spritesheet for it, nothing special, just recolors of the basics. I added it to the animations.xml (code seen below) and made the blueprint reference that animsheet for its animations, but in FTL proper, the weapon has no animations whatsoever besides the glow that lets me know the chain effect is working properly.
I can confirm that the spritesheet is named as such listed in the code, and exists in the resources proper. It is listed as the correct animsheet for the weapon. I genuinely don't know the problem, and if anyone could help I would be very grateful.
Code: Select all
<animSheet name="ionchain" w="320" h="67" fw="32" fh="67">weapons/ionchain_strip10.png</animSheet>
<weaponAnim name="ionchain">
<sheet>ionchain</sheet>
<desc length="10" x="0" y="0"/>
<chargedFrame>4</chargedFrame>
<fireFrame>5</fireFrame>
<firePoint x="18" y="23"/>
<mountPoint x="4" y="49"/>
<boost>ionchain_charge</boost>
</weaponAnim>
I can confirm that the spritesheet is named as such listed in the code, and exists in the resources proper. It is listed as the correct animsheet for the weapon. I genuinely don't know the problem, and if anyone could help I would be very grateful.