-
Notifications
You must be signed in to change notification settings - Fork 3
Ghosts
This mod support custom Ghosts for both base archers and custom Archers
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'
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 #)
-
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.
Just add the sprites atlas on your custom "atlas.xml' and the sprite data in the spriteData.xml
You should not put `Category="ghost" For="" in the spriteData (if you use "For" there is a chance to not work for the custom or replace the archer referred in the for).
Then add a <Ghost> in the archerData.xml of your custom with the spriteData 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 #)
- Can I have a ghost of any size? NO, currently Archer Loader only support ghosts with dimensions and animations the from base ghost