Script to display sprite sheet animations

Script to display sprite sheet animations

I made a simple script in javascript for displaying sprite sheet animations since I could not find any good tools to do it for me. I hope it might be of use to someone else too.

https://github.com/wulax/sprite_sheet_preview/blob/master/sprite_sheet_p...

The script assumes all frames in one animation cycle are one one single row. If a sheet has multiple rows / animation cycles, you can change row by clicking on the document.

For more instructions, read the comments in the script.

Example of the script running:

https://dl.dropbox.com/u/76778780/sprite_sheet_preview.html

Note that the image in example, male_walkcycle.png, does not have a single animation cycle per row. The first one is stand/idle animation, because of this a small jump is shown in the walk animation.