Computer Science Canada Transparent Sprites |
Author: | nixsin [ Thu May 21, 2009 11:13 am ] |
Post subject: | Transparent Sprites |
What is it you are trying to achieve? Produce transparent sprites in Turing What is the problem you are having? My group is making a Turn based Strategy Game and we are having trouble putting a sprite with a transparent background on a window that is a .jpg image. The sprite is placed on the background but the background of that image is not transparent and the background of the sprite is shown instead of the map. Describe what you have tried to solve this problem We tried using the different modes for Pic.Draw but i think i am missing something Please specify what version of Turing you are using 4.1.1 and 4.0.5 (yes, weird) |
Author: | zero-impact [ Thu May 21, 2009 2:46 pm ] |
Post subject: | RE:Transparent Sprites |
First off you shouldn't be using jpg's for that. The reason being is that jpeg compression can cause colours to "bleed" into eachother. I'm pretty sure turing supports raw .bmp's the best. |
Author: | BigBear [ Thu May 21, 2009 8:21 pm ] |
Post subject: | RE:Transparent Sprites |
To blend images into a background use picMerge instead of picCopy |
Author: | DtY [ Thu May 21, 2009 8:43 pm ] |
Post subject: | Re: RE:Transparent Sprites |
zero-impact @ Thu May 21, 2009 2:46 pm wrote: First off you shouldn't be using jpg's for that. The reason being is that jpeg compression can cause colours to "bleed" into eachother. I'm pretty sure turing supports raw .bmp's the best.
Also that jpegs don't have an alpha (transparency) channel |