About color key

I’m optimizing the videogame I’m currently working on. It has several animations, and wanted to optimize it as much as possible. Right now, the sprite sheets are a 1024x1024 png, but would like to use a 512x512 jpg, but then I wouldn’t have the alpha channel, so I wondered if Corona provides a color key property. I’ve been looking for it and found the display.setDefault(), it’s not what I was looking for…

Any idea?

Maybe this is a basic question, but what’s a color key?

  • Andrew

color keying is used to remove the background color and set an alpha channel to a jpg. In lots of 2D games, the sprite sheets used in animations have a background color [usually a pink one, (255, 0, 255)] to avoid using png’s

There is no color key property in Corona. Sorry.

What a shame… Well, thanks anyway :wink:

I should add that it may be supported in our upcoming Graphics 2.0 update.

Wow, that would be nice! Do you know when will it be released, more or less?

Maybe this is a basic question, but what’s a color key?

  • Andrew

color keying is used to remove the background color and set an alpha channel to a jpg. In lots of 2D games, the sprite sheets used in animations have a background color [usually a pink one, (255, 0, 255)] to avoid using png’s

There is no color key property in Corona. Sorry.

What a shame… Well, thanks anyway :wink:

I should add that it may be supported in our upcoming Graphics 2.0 update.

Wow, that would be nice! Do you know when will it be released, more or less?