Jump to content
  • Advertisement
Sign in to follow this  
Mavericky

Make an animation from a spritesheet [Javascript plugin]

This topic is 410 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm working on a web based game and using the ImpactJS game engine which is pretty low level. I found it tedious for web engines to have to enter the frame of the animations I wanted to use each time and even had to go so far as to calculate the correct frame (if my spritesheets were large!)

I created PlaybackJS as part of a bigger set of web-based tools for making web games. It is compatible with jQuery and has support for firing events in vanilla javascript too.

  • Initialize with an existing image object with options property imgPtr
  • Or initialize with an image from the web with options property imgSrc
  • Dynamically change replay speed
  • Step forward or backward through the frames
  • Has math utility functions to calculate the cell rectangle and frame index from the mouse click
  • Replays on a target canvas object-- you can blit this image data directly into your 2D games with little extra work

Click here to read more of the plugins features.

Now you can make animations easier. Please star, fork, and share!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!