【发布时间】:2013-06-25 23:45:00
【问题描述】:
如果我需要它以应用程序 FPS 的 10% 运行,如何为单个位图动画设置帧速度?
谢谢
【问题讨论】:
标签: performance bitmap frame easeljs createjs
如果我需要它以应用程序 FPS 的 10% 运行,如何为单个位图动画设置帧速度?
谢谢
【问题讨论】:
标签: performance bitmap frame easeljs createjs
您可以在 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 倍。
【讨论】: