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.

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:

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.