imageSuffix for Sprite sheets

Hi All,

Just wondering is it possible to use imageSuffix for spritesheets? if not how do you guys handle it on different devices?

Thanks

Vik

[import]uid: 67619 topic_id: 18796 reply_id: 318796[/import]

No, sprite sheets are not supported by the dynamic image resolution feature in Corona.

I’m working on this very issue now, perhaps I’ll have some code to share later today. Basically, I’m writing my own routines to look at the current scaling mode, and pick an appropriate imageSuffix based upon that.

Do a google search for “Corona dynamic spritesheet”, you will find a lot of posts that grapple with this issue. For instance, I believe SpriteGrabber is in the process of incorporating dynamic spritesheets. [import]uid: 71767 topic_id: 18796 reply_id: 72411[/import]

Spriteloq now supports dynamic image resolution. It’s really awesome. If you use Flash to generate animation, Spriteloq is the way to go.

Naomi [import]uid: 67217 topic_id: 18796 reply_id: 72454[/import]

Okay, I’ve made my Corona Object-Oriented Lua (CooL) library open source. Please consult the class ‘Display:getDynamicImageSuffixes’ to see how I return a list of multiple image suffixes depending upon the current screen resolution.

The returned list contains multiple image suffixes, ordered by suitability of the specified image suffix as they pertain to the current screen scaling.

https://github.com/dejayc/CooL/blob/master/Classes/CooL/Display.lua

For example, if you specify a @2x image suffix and @1x image suffix, and the screen is 3x, the returned list will be “@2x, @1x”. You should use this list by first attempting to load “@2x”, and then falling back to “@1x” if necessary. [import]uid: 71767 topic_id: 18796 reply_id: 72640[/import]