QUOTE(papuccino1 @ 16 Jun, 2009 - 04:54 PM)

StaysCrisp, would this work for XNA animation?
I positioned each frame at equal distance, and they are the same height and width.
I need some help!

Hey there,
I can help you with this.

What you would like to do is create an array of
Rectangles(optionally you could also do it with a list but it would be a little harder to code but not impossible). Each
Rectangle would hold one frame of the animation. Say your sprite was 64 pixels wide, 100 pixels high. Taking your images you have 6 sprites in the sprite sheet. You can set up the array of rectangles like this:
csharp
Rectangle[] spriteSheet = new Rectangle[6];
for (int i = 0; i < 6; i++)
{
spriteSheet[i] = new Rectancle(
i * WidthofSprite,
0,
WidthofSprite,
HeightofSprite);
}
That would give you the frame for each animation step. Now, I can't help you work on animating the frames at this moment as I'm not at home, but if you can wait until tomorrow, I can help you start with animating them.