This the animation system I wrote for my C# XNA side scrolling platformer