Sprite setImage after copy is setting the sprite size to (0,0)

SDK 1.9.3 - Linux & MacOS

Hi all,

I created a post in the 'Get Help' session of the forum on a peculiar behavior that was related to change of sprite images as part of an animation.

Specifically, when sprites that have been created using the :copy() method (rather than the .new([image]) function) once you use the :setImage(image), the sprite's size is changed to 0 height and 0 width. The sprite still has the correct image, but for some reason it's size are not translated to the sprite itself.

To avoid duplicating posts, for more details, demo and example code, please see this post.

Thank you.

This is fixed in SDK 1.10.0, available now. Thanks for the report!


Hi @dwineman,

I was going to go back to my project to verify, but since I'm away from my PC, I'll just mark this as solved and take you word for it.

Thank you for following up :playdate:

1 Like