It's pretty easy to get animations rolling from a sprite sheet. Though which ways there are on combining the animations with player dynamics and motion?
I've figured there's two starting points anyway:
- Player animation contains motion (the animation slab defines how the sprite moves)
- Player animation does not contain motion
Simple state machine might do the stuff, but are there alternatives? How would you write the state machine itself for doing it?
I'm writing a small hack&slash&jump platform game in html5. The player should stay in place when he strikes a sword, perhaps even move a bit (one can accomplish it through a hack), but otherwise move pretty much without limits. I've got couple frames and I'd like it all to mesh together well.