I'll try to explain this as best as I can.
I'm trying to build a game where there exists a "Surfer" who is surfing down a rail. I have a sprite sheet for the surfer however I have been running into animating the surfer for the following reasons:
- The source rectangles for each animation are sometimes different
- The feet of the surfer are at different locations within each texture animation.
What do I mean by #2? For instance, I have an animation for the surfer to jump rails. My spritesheet is built so that my surfer's feet might be positioned on the left side of the texture at the start of the animation and after the jump (iterating through the textures) his feet are now at the right hand side of the texture.
This is causing me problems because in order to align the feet to the rail for each animation I tried to offset the origin of the texture so that it points at his feet.
(The origin is given in the SpriteBatch.Draw call)
However this isn't working :(
Any recommendations on how to properly set this up?
PS: I Hope I explained it well, if not I can edit it and retry.