EaselJS:位图动画:设置帧速度

时间:2013-06-25 09:29:00

标签: performance bitmap frame easeljs createjs

如果我需要以应用FPS的10%运行,如何为单个位图动画设置FRAME SPEED?

由于

1 个答案:

答案 0 :(得分:0)

您可以在spritesheet的构造函数中设置动画的频率。

例如:

 animations: {
        // start, end, next, frequency
        jump: [9,12,"run",2]
    }

 animations: {
        jump: {
            frames: [8,9,10,9,8],
            next: "run",
            frequency: 2
        }
    }

默认情况下它是1,所以如果放10则会慢10倍。