grapefruitjs / grapefruit

Outdated, I recommend you use photonstorm/phaser instead!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change AnimatedSprite speed

englercj opened this issue · comments

currently .speed is number of animation frames to show per render frame, but it would be better to have .duration which is milliseconds for the entire animation.

This needs a big buff. Should be able to specify animations in terms of animation frames per frame (like now) or ms per frame. Should also be able to specify ms spacing between loops,

Animation speed is based on ms not frame time anymore!