有任何方法可以创建像这样重复的帧,上面:
character = new createjs.SpriteSheet({
images: [img],
frames: {width: frameW, height: frameH, regX: frameW/2, regY: frameH/2},
animations: { run: [0,9, "run"],
hit: [10,10,11,11,12,12,13,13,14,14,15,15, "idle"],
jmp: [18,22, "idle_jmp"],
idle_jmp: [22],
idle: [2]
}
});
在命中时重复每一帧两次,以模拟在命中动作时出现的较低 FPS!