Load SpriteSet from system.DocumentsDirectory/system.TemporaryDirectory.

Hi,

For a game I am working on, I need to save an image via the display.save() method and in turn would like to load that image for use as a Sprite Sheet in Corona Game Edition. It appears, currently, that you cannot load a Sprite Sheet from an image in either of these directories. Is this something that could be fixed easily, as I really need this for my game!

PS - Figured I’d try this in the new Game Edition forums…

Thanks! [import]uid: 4915 topic_id: 1393 reply_id: 301393[/import]

Hi, griffonz, and welcome to the brand-new Game Edition forum! I’ve logged this in our bugbase as case #291.

Can you say more about what you’re trying to do? I assume you want to create animated sprites on the fly, using some kind of dynamic visual content?

[import]uid: 3007 topic_id: 1393 reply_id: 3905[/import]

Hi Evan,

Yes, pretty much. I want a user to be able to take a photo, then I was hoping to load this Photo as a SpriteSet and manipulate it as I would any other sprite sheet.

Hope this makes sense! [import]uid: 4915 topic_id: 1393 reply_id: 3906[/import]

It is a bit related… that I asked about having “png” as target format for display.save() so there is no degradation of quality… and that jpeg saving gets an additional quality parameter! [import]uid: 6928 topic_id: 1393 reply_id: 3907[/import]

@griffonz, I’m curious to know more about what you would do with a photo as a sprite. We envision sprites as a set of partially transparent animation frames. [import]uid: 54 topic_id: 1393 reply_id: 3929[/import]

Evan, the plan was to utilize a photo as a puzzle essentially. We could do the same thing if we could create images as a subset of a texture as well.

Thanks!
[import]uid: 4915 topic_id: 1393 reply_id: 3930[/import]

Ah, I was wondering if it was a jigsaw puzzle or something like that!

We’ve had previous requests for the ability to copy a rectangle out of a larger graphic, and this sounds like something along those lines – we never thought of using sprite sheets in this way; they’re more of a specialized API aimed at animations. [import]uid: 3007 topic_id: 1393 reply_id: 3934[/import]

Evan, I understand. I was just thinking of different ways to get done what I needed to. Again, being able to create an image out of a section of another would be perfectly fine for what I need as well!
[import]uid: 4915 topic_id: 1393 reply_id: 3939[/import]