View Single Post
Old 10-09-2002, 07:52 PM   #2
Earthscum
A Shissar Disciple
 
Join Date: Sep 2002
Server: Quellious
Posts: 136
Interface Author - Click to view interfaces
Send a message via AIM to Earthscum Send a message via Yahoo to Earthscum
Default

ok, here's how it's done:

You create your animation (however many frames you want) and paste them all together in one TGA file (remember the Alpha channel!)

Now, to make the animation, you define the texture:

<TextureInfo item = "Skelly_Animation.tga">
<Size>
<CX>512</CX>
<CY>1024</CY>
</Size>
</TextureInfo>

Then you define your frames:

<Ui2DAnimation item = "Skelly">
<Cycle>true</Cycle>
<Frames>
<Texture>Skelly_Animation.tga</Texture>
<Location>
<X>4</X>
<Y>10</Y>
</Location>
<Size>
<CX>120</CX>
<CY>200</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>150</Duration>
</Frames>
<Frames>
<Texture>Skelly_Animation.tga</Texture>
<Location>
<X>132</X>
<Y>10</Y>
</Location>
<Size>
<CX>120</CX>
<CY>200</CY>
</Size>
<Hotspot>
<X>0</X>
<Y>0</Y>
</Hotspot>
<Duration>150</Duration>
</Frames>
</Ui2DAnimation>

All the frames need to be within the same <Ui2DAnimation> tags.
The <Duration>1000</Duration> is 1 second, 250 is 1/4 a second, etc etc.
If you forget the <Cycle>true</Cycle> before listing your frames, it won't work. This is how you can use as many frames as you want.

Next, you place the image:

<StaticAnimation item= "Skelly">
<ScreenID>Skelly</ScreenID>
<Location>
<X>160</X>
<Y>40</Y>
</Location>
<Size>
<CX>120</CX>
<CY>200</CY>
</Size>
<Animation>Skelly</Animation>
</StaticAnimation>

and don't forget to add:

<Pieces>Skelly</Pieces>
at the end.

Pretty simple and straight forward :-) Good luck!!!
Earthscum is offline   Reply With Quote