View Single Post
Old 10-18-2002, 12:14 AM   #3
Cormanth
A Shissar Defiler
 
Cormanth's Avatar
 
Join Date: Aug 2002
Server: Zebuxoruk
Posts: 172
Interface Author - Click to view interfaces
Default

Actually, I'm seeing a different problem with that code, unless you just forgot to post part of it... I see that you are placing the animation on the screen, but where in there are you defining it? Before you can place an animation on the screen using <StaticAnimation> you need to create the animation using <UiD2Animation>. Here's a very rough example

<TextureInfo item = "filename.png">
<Size> </Size>
</TextureInfo>

<UiD2animation item = "A_AnimName">
<Frames>
<Texture>filename.png</Texture>
<Location> </Location>
<Size> </Size>
</Frames>
</UiD2Animation>

Then, after you have declared the texture file to use, and specified where to load the animation from, you can place it on the screen.

<StaticAnimation item = "Anim">
<ScreenID>IDName</ScreenID>
<Location> </Location>
<Size> </Size>
<Animation>A_AnimName</Animation>
</StaticAnimation>

I left out the details, ofcrouse, as well as some optional things. But those are basically the required steps to placing a pic or an animation on the screen.... 1) declare the graphic file as a texture, 2) define where the texture is to be loaded from, 3) then place the texture/animation on the screen.
Cormanth is offline   Reply With Quote