sprite:setScale ignores invertedImage

After using sprite:setScale the image will no longer be inverted. Not sure if this is a bug or just me using the wrong method.

Here is an example of the problem (please ignore the wrong usage of setCenter, it doesn't impact the outcome)

image
With setScale the original image is used

image
invertedImage used properly when setScale is commented out

It is very easy to reproduce, you just have to use sprite:setScale after using an image:invertedImage() in the sprite constructor.

3 Likes

Aha! Great catch. I've filed that and will get it fixed soon, should be pretty simple. :crossed_fingers:

2 Likes