When i set sprite.image = new image('path');, things break for me. The image is scaled wrongly, it is cropped, and things don't work out right. I set my sprite width, height, and scale up to that of the image's and turn smoothing off, but it still breaks. What am I supposed to do?
This is an existing sprite with its image being reset to a different one.