Lime Transparency Problems

Hi I am using lime and the transparency works in tiled but not when you run the tile map in the simulator. Also, I don’t get the light blue background by default, just black.
Please help.

Thanks. [import]uid: 68047 topic_id: 13191 reply_id: 313191[/import]

Hi, what version of Lime are you using? I thought I fixed the transparency in the latest.

Which light blue background do you mean? Like in the tutorials? [import]uid: 5833 topic_id: 13191 reply_id: 48433[/import]

I am using version 3.4

And yes, the tutorial blue.

However the main problem is tranparency issues. In tiled the tiles have proper transparency, but not in the simulator.

I can take a screen shot if you like :slight_smile:

Thanks :slight_smile: [import]uid: 68047 topic_id: 13191 reply_id: 48451[/import]

Ah yea the tutorial blue isn’t actually part of lime, if you open up one of the tutorial folders you will see a rectangle the size of the screen is created in the first few lines of main.lua

A screenshot would be great yea. [import]uid: 5833 topic_id: 13191 reply_id: 48476[/import]

http://tinypic.com/r/amtcia/7

There’s a screen shot. The blue one’s don’t have any white gaps so they are fine. The others however don’t show transparency.

I can take a screen in tiled as well, showing that they are transparent, but it’s a bit pointless.

Thanks. [import]uid: 68047 topic_id: 13191 reply_id: 48626[/import]

That looks like an issue with the actual files, you may not have saved them correctly from Photoshop. Are you getting any warnings in the terminal about incorrect colour space?

Try using them as a regular image in Corona without Lime, I reckon the same issue will be seen. [import]uid: 5833 topic_id: 13191 reply_id: 48684[/import]

Ok, I think you’re probably right. But why does Tiled show the transparency but corona doesn’t?

Also, they are pixel images so do I just remove the background in photoshop and save as PNG?

I think I remember having this problem before now :slight_smile:

Thanks [import]uid: 68047 topic_id: 13191 reply_id: 48742[/import]

Corona needs images to be in a certain format, I believe it needs to be 24-bit RGB colour rather than indexed colour, I guess Tiled can support more than that.

WHen you save them make sure they are in that format. If that doesn’t work then it is a slightly different format that is required, it will be in the forums somewhere. [import]uid: 5833 topic_id: 13191 reply_id: 48762[/import]