CoronaSDK.2012.760 spritesheets

I wanted to upgrade my game to the latest build (CoronaSDK.2012.760), and noticed the spritesheets were not displaying properly. They seemed to grab the middle of the sprite and into the next sprite in the sheet. I am using 32x32 sprites.

I “downgraded” build CoronaSDK.2012.758 and everything is fine.

Sorry I didn’t think of taking a grabbing an image. [import]uid: 114363 topic_id: 22855 reply_id: 322855[/import]

I’m also experiencing what seems like graphics corruption on spritesheets when playing back the animations. Everything else is in order apparently. [import]uid: 61899 topic_id: 22855 reply_id: 91305[/import]

I had this issue when updating Spriteloq. It doesn’t matter what dimensions your sprites are. What matters is that the spritesheet is has dimensions that are a power of 2.

So if you have a 100 x200 spritesheet, you should fill that out to 128x256 (2^7 x 2^8) for it to render properly. [import]uid: 27183 topic_id: 22855 reply_id: 91310[/import]

Note: It seems that the thread linked directly below is most relevant, and maybe we should continue discussion about broken sprites here, to make it easier for admin/mods to keep track of the discussion:

http://developer.anscamobile.com/forum/2012/03/02/build-759-sprites-not-displaying-correctly

That said…

This happens for me on just about all spritesheets as well, from build 759 and after. It’s most likely due to this line in the build notes:

Rewritten sprite implementation (still under development, but initial checkin)

I haven’t found any documentation on the new “rewritten” implementation, but either something is just broken, or the API has been changed slightly.

Peach mentioned here [http://developer.anscamobile.com/forum/2012/03/04/graphics-759] that some updated docs/tutorials are on the way, so it sounds like it may be the latter.

It’s all purely speculation, but regardless hopefully something that can be resolved soon through either updated docs or another build.

I’d really like to see how much of a performance increase I can get with all the new optimizations. [import]uid: 49447 topic_id: 22855 reply_id: 91445[/import]