Skip to content
Matthew Walls edited this page Oct 29, 2018 · 1 revision

Gist

New child of CompProperties_Animated that allows xml and programmatic instance hooks to move an animated image over a thing def. Not intended to be used by pawns unless scaling is needed.

In Action

Example Github: https://github.com/alycecil/CompProperties_AnimatedOverExample

Example Component Clip (Try using this!)

<comps>
...
            <li Class="CompAnimated.CompProperties_AnimatedOver">
                <secondsBetweenFrames>0.55</secondsBetweenFrames>
                <xOffset>-0.5</xOffset>
                <yOffset>1.1</yOffset>
                <stillFrames>
                    <li>
                        <texPath>yemma/demonfat</texPath>
                        <drawSize>0.5</drawSize>

                        <graphicClass>Graphic_Multi</graphicClass>
                    </li>
                    <li>
                        <texPath>yemma/demonfat_1</texPath>
                        <drawSize>0.5</drawSize>

                        <graphicClass>Graphic_Multi</graphicClass>
                    </li>
                </stillFrames>
                <sound/>
            </li>
            <li Class="CompAnimated.CompProperties_Animated">
                <secondsBetweenFrames>0.15</secondsBetweenFrames>
                <stillFrames>
                    <li>
                        <texPath>yemma/yemma_0</texPath>
                        <shaderType>CutoutComplex</shaderType>
                        <graphicClass>Graphic_Single</graphicClass>
                        <drawSize>(3,2)</drawSize>
                    </li>
...