Sprites (animation sequences) are scaled in latest build

I’ve just rewritten all image/textureAtlas loading etc.

Everything works fine, except when I use display.newSprite.

All sprites loaded with display.newSprite are scaled (not even uniform.)

Setting xScale/yScale or calling :scale does not fix it.
The closest I get to fixing it is settings xScale to 3 and yScale to 2 [import]uid: 5942 topic_id: 23002 reply_id: 323002[/import]

Just found the same problem. Haven’t had a chance to go back through and check the blog post/new sprite API doc to see if I was missing something yet, but everything loaded with display.newSprite appears squashed and/or stretched on both x and y axis. Using latest build (762). [import]uid: 40137 topic_id: 23002 reply_id: 91923[/import]

@jbverschoor Here’s the problem… All the sprites have the same width and height values as the first frame in the frames table.

You can test this by either changing the width and height values in the first frame of the frames table (and see the sprites stretch or squash).

Or, you can set the .width and .height properties of the sprite to the correct values after it’s created and it will display correctly.

I filed a bug, but who knows when they’ll get around to it…
[import]uid: 40137 topic_id: 23002 reply_id: 92009[/import]

Great… I’m using a custom newSprite functino anyway, so that’s a small think to change.

Thanks a whole bunch!

(confirmed working…) [import]uid: 5942 topic_id: 23002 reply_id: 92015[/import]