Okay I'm making a UI obviously and I've made a small 3 frame animation to use as the AttackIndicator
Now, it will go through all three frames once. Then it will stick on the last frame. It does flash red, as I was hoping for.
Here is my code...
<Ui2DAnimation item = "A_AttackIndicator">
<Cycle>true</Cycle>
<Frames>
<Texture>AttackIndicator.tga</Texture>
<Location>
<X>0</X>
<Y>0</Y>
</Location>
<Size>
<CX>66</CX>
<CY>53</CY>
</Size>
<Duration>200</Duration>
</Frames>
<Frames>
<Texture>AttackIndicator.tga</Texture>
<Location>
<X>67</X>
<Y>0</Y>
</Location>
<Size>
<CX>66</CX>
<CY>53</CY>
</Size>
<Duration>200</Duration>
</Frames>
<Frames>
<Texture>AttackIndicator.tga</Texture>
<Location>
<X>132</X>
<Y>0</Y>
</Location>
<Size>
<CX>66</CX>
<CY>53</CY>
</Size>
<Duration>200</Duration>
</Frames>
</Ui2DAnimation>
That is in my EQUI_Animations (i know it doesn't have to go there, but I wanted it to)
also here is my playerwindow
<StaticAnimation item = "A_AttackIndicatorAnim">
<ScreenID>A_AttackIndicatorAnim</ScreenID>
<Animation>A_AttackIndicator</Animation>
</StaticAnimation>
If I try and set location or anything for it, it will put the last frame static, but when I turn attack on it will always start at x0,y0
Any ideas????