Skip to content
Rinaldo Bueno edited this page Jun 12, 2023 · 10 revisions

This mod support custom Ghosts for both base archers and custom Archers

The ghost atlas is recommended to be colored white to support recoloring. Also Ghosts supported optional a element to force a color for the ghost. should be a hex color (without the #)

For Base Archers

  • How to install a custom Ghosts for base archers?

Just put the Ghost Folder on a "CustomArchers" folder from your preference

  • How to create a Ghost?

To create a Ghost to the a base archer is recommended to use GhostTemplate as reference. You will need a 'atlas.png','atlas.xml' and a 'spriteData.xml'. You don't need an archerData.xml.

GhostTemplate.zip

A Sample of a Ghost spriteData.xml:

<SpriteData>
  <sprite_string id="templateGhost" For="RED" Category="ghost">
    <Texture>template/ghost</Texture>
    <!-- <Color>9539a8</Color>  -->
    
    <!-- not being used in the time been -->
    <FrameWidth>18</FrameWidth>
    <FrameHeight>25</FrameHeight>
    <OriginX>13</OriginX>
    <OriginY>12</OriginY>
    <Animations>
      <Anim id="spawn" loop="False" delay=".05" frames="8,9,10,11,12,13,14,15,16,17,18" />
      <Anim id="normal" delay=".08" frames="0,1,2,3" />
      <Anim id="happy" delay=".1" frames="4,5,6,7,4,5,6,7,4,5,6,7" />
      <Anim id="dodge" loop="False" delay=".08" frames="27,28,29,30" />
      <Anim id="death" loop="False" delay=".1" frames="21,22,23,24,25,26" />
      <Anim id="despawn" loop="False" delay=".05" frames="18,17,16,15,14,13,12,11,10,9,8" />
    </Animations>
  </sprite_string>
</SpriteData>

You obviously should not use the id="templateGhost" or 'template/ghost', also avoid using the same id for the sprite id and the subtexture id

For customs

Just add the sprites atlas on your custom "atlas.xml' and you don't need the sprite data while.

Add a <Ghost> in the archerData.xml of your custom with the SubTexture Id contain the ghost.

ie. in the sample above <Ghost>template/ghost</Ghost>. *Don't add as a child of <Sprite>, should be outside, Like <Corpse> and all the others base elements.

is also supported and should be a hex color (without the #)

For customs without editing the main Atlas

You can have a ghost spriteData for a custom archer, in case you want to add a ghost for a custom that you didn't created. Just to the same as it was a base archer.

FAQ

  • Can I have a ghost of any size?

NO, currently Archer Loader only support ghosts with dimensions and animations the from base ghost

Clone this wiki locally