Icon Sprite-sheet-animation

Hey everyone,
I made another spritesheet animation module.
First of all, you have to make sprite sheet png. I used a image sequence flash animation.

Setup looks like this,

{IconAnimation} = require "IconAnimation"
icon = new IconAnimation
spriteImage:"images/icon_1.png"
active:38
inactive:38
width:115
height:80
activeSpeed: 0.008
inactiveSpeed: 0.008

"active" means a open animation step count, and the other way "inactive" is close step count. "activeSpeed" and "inactiveSpeed" mean open, close animation speed. You can control animation speed.

link : http://share.framerjs.com/kz3stacph73w/

Thanks.

Posted on Feb 28, 2016

More by JungIk Lee

View profile