Sprites from images?

Is it possible to turn a standard image into a sprite (thus allowing box2d functionality)?
It looks like you’re forced to load in a sheet, then split it up, etc.

I understand sprites are just display objects underneath so I wondered if anyone far more comfortable with LUA than me knew a way.

Thanks, [import]uid: 8683 topic_id: 1938 reply_id: 301938[/import]

What do you mean exactly? [import]uid: 5354 topic_id: 1938 reply_id: 5746[/import]

It’s a bit of an academic exercise, really.

I just wanted to make a self contained proggy not relying on external loading (Cobra was quite good for that - it’s a habit I got into).
As you can create a square or a circle, I could make some simple graphics and use them for demos.
Basically, I can’t draw :slight_smile:

[import]uid: 8683 topic_id: 1938 reply_id: 5751[/import]

Still not sure exactly what you are after… You want to generate imagery inside the application and not load image files

Corona has a vector engine where you can draw squares, circles and other more complex shapes, you can colour them and add paths. Is that what you want? [import]uid: 5354 topic_id: 1938 reply_id: 5752[/import]

Hi, this is a bit academic really. And probably a bit pointless the more i think about it.

Sorry I brought it up :slight_smile:
[import]uid: 8683 topic_id: 1938 reply_id: 5792[/import]