This tutorial will show you how to use an XML file to split up your animation into different sections. This can be useful because many exporters do not allow you export multiple animations in one model.

This tutorial assumes you have a basic knowledge of XML. If you don't, do not worry, since XML is one of the easiest things you'll ever learn. Just do a Google on it.

Tutorial

    // Add this as the XML file root
    <animation>

    </animation>
    // Add this as a child of animation
    <tickspersecond>15.0</tickspersecond>
    // Add this as a child of animation
    <animationsubset>

    </animationsubset>
    // Add this as a child of animationsubset
    <name>attack</name>
    // Add this as a child of animationsubset
    <startframe>127</startframe> OR <starttime>8.46666</starttime>
    <endframe>141</endframe>      OR <endtime>9.4</endtime>
    // Add this to the LoadGraphicsContent method
    AnimationController attack = new AnimationController(
        this, dwarfAnimator.Animations["attack"]);
    foreach (BonePose p in dwarfAnimator.BonePoses)
    {
        p.CurrentController = attack;
    }