How to animate the complex sprite?

Make the game and the animation of the sprite where each frame has the same height and width everything works fine.
But what if the sprite frame is different from the previous height and width. Specify as either array, these parameters for each frame? As will be more optimized to do?
July 4th 19 at 23:05
2 answers
July 4th 19 at 23:07
Yes, you will have to store the height and width, because all animations will be read the same size, or you can use as the basis for most animation and use its width and height common to all.

Minus: you have for example when you click can not be processed place, since technically you clicked where the animation is nothing
July 4th 19 at 23:09
1) You need to align all sprites on a line, i.e. to alter them so that the width and height of each sprite was the same. And if, for example, walking animation, then align the legs of the character desired.
2) as a result you'll have a giant sprite, which you can leave as is, but it is better to pack a special packer.

Packers are:
1) online
2) offline free
3) offline paid

Find more questions by tags CanvasDevelopment of gamesHTMLJavaScript