I I'm trying to make a platform game but im having some problems with making the pictureBoxes (objects like platforms etc) blending in to the background. I've tried setting the background as a parent of the pictureBoxes and using the transparent background setting, but that makes it so that my player cannot intersect with the platforms in the game. The player needs to be able to move around in the background so i cannot make that a child of the background either. Transparencey key seem to make a big hole in my application so i cannot use that either. Bitmap doesnt seem to work unfortunately, i've tried that too:
Bitmap b = new Bitmap(pictureBox2.Image);
b.MakeTransparent(b.GetPixel(1, 1));
pictureBox2.Image = b;
I've tried this with both already transparent pictures .Jpeg, .BMP and .PNG and with all white backgrounds, and changing the color like this:
PictureBox2.BackColor = Color.Black;
Bitmap bmp = new Bitmap (pictureBox2.Image);
bmp.MakeTransparent(Color.Black);
pictureBox2.Image = bmp;
Does anyone know how i can solve this ? Thx a million! /Raz