hi there,
I find the frame index chosen in cc.Animate.update() may be wrong.
update:function (time) {
var frames = this.*animation.getFrames;
var numberOfFrames = frames.length;
var idx = Math.round;
if {
idx = numberOfFrames - 1;
}
var sprite = this.*target;
if (!sprite.isFrameDisplayed(frames[idx])) {
sprite.setDisplayFrame(frames[idx]);
}
for example, if time is 0.25, and numberOfFrmaes is 2, then then idx will be 1 other than 0.
I think it should be Math.floor() here, not Math.round().
Regards,
Xiang