Well, I created a house in paint, nothing special, and I wanted the background to be, of course, invisible so the icons behind it would show up. I figured if I copied an image from BYOND and pasted it in paint, then used the colour locator tool to locate the colour of the invisible section (the grey area) of the image and then flooded the background of my house image in that colour. This, so I thought, would mean that the house would show up and the grey section would be invisible showing whats behind it, however what appears when I add it into the game is the house with a grey square around it instead of being invisible. So..... I know the colour is exact, the code is the simplest turf adding code ever, the usual
turf/house
icon = 'house.BMP'
pretty simple, so....Whats wrong with it!?!?
Please reply any way possible telling me a way to make the background invisible, all help is appretiated, thanks in advance. - Conj.
ID:268407
![]() Jul 13 2004, 4:01 pm
|
|
![]() Jul 13 2004, 4:03 pm
|
|
just to be 100% sure, make sure the RGB is 192,192,192 (I think thats it)
|
Open up paint. In the colour pallete at the bottom of the screen you'll see some default(uncustomized) colours. Choose the grey on the bottom line, 2nd from the left(the one next to WHITE not BLACK)
This colour is the masked colour and i know for a fact that using that comes up masked in byond. Whereas defining the colour urself(by inputting rgb codes in paint) doesn't. |
I know that the light grey in the default palet in paint is the correct colour, it still doesn't work. Ill try what Air said but I doubt it'll do any different.
|
What are you talking about? I just filled a 32 by 32 paint bmp using the fill tool and adding that grey. Then i used import into an icon and it was all masked.
|
Thats using import , which means the image gets split up if its very large, my image is a house which is very large and I dont feel like making ab bunch of turf codes for each 32x32 square and then putting them all together to form the house, Id rather just have an icon to add thats the entire house, so I saved it in BYONDs directory and I can now do that, however the grey isnt working. I know it works when you import though.
|
Here's the problem: .bmp does not support transparency. When you use a .bmp as an icon instead of importing it (by copy+paste or the import function), you are bypassing BYOND's masking functions (which I believe are specific to the .dmi file format). Your best bet is to download something like win-gimp and save it as a .png with transparency. It'll require a little work with the layers, but otherwise should be fine.
|