MODULE: Sprite Animation Layer
I had a few requests for this module today so I decided to post it up on http://framerCo.de
This module helps you do a sprite sheet animation. You just have to provide the image, a single sprite size, sprite step count and the speed to step through the sprite.
Setup looks like this:
sprite = new SpriteAnimationLayer
The methods you can call on the layer are:
By default, calling .play() will continue to loop until you call .pause() on the sprite. If you only want to play once then use the .playOnce() method. The .pause() method will pause both of the .play() and .playOnce() methods.
Framer Studio Source Simple Example:
Framer Studio Source Advanced Example:
I hope this works well for you. Let me know if you find any issues or have any ideas on how it could be better.
Thanks and Enjoy!