My game stopped working with 2.1.6. I figured out that’s because the cc.Sprite.setFlipX() method is now called setFlippedX(). Shouldn’t breaking changes like this be mentioned in the change log?
Anyway, I’m still rollbacking to 2.1.5, because I’m getting very blurry graphics (in canvas mode). Is this a known issue, or should I report it?
I see v2.2 just got released, and it still shows the same behavior as 2.1.6.
By the way, I’ve got more info about this issue: it happens when the sprite position contains non-whole values (ie: floats with digits after the decimal point).
Example:
X=100, Y=50 = no blur
X=100.2, Y=48.7 = blur
Can you confirm that this is a bug, or is this wanted behavior? I could change my code to round up all position values if I have to.
We had try to round up the sprite’s position when drawing to Canvas, code like follow: context.drawImage(image, locRect.x, locRect.y, locRect.width, locRect.height, 0|flipXOffset, 0|flipYOffset, locRect.width, locRect.height);
It works well when the sprite’s parent node’s scale value equals or less than 1. But if the scale value greater than 1, for example it equals 5, then the sprite will be move very choppy when it’s running a cc.MoveTo/cc.MoveBy action.
I could change my code to round up all position values if I have to.
Yes, you could do this.