I’ve started on a small game and downloaded some great 2d sprites from http://reinerstileset.4players.de. However, his background (unknown) is a brown color that I want to remove.
Is there a way that I can check pixel at (1,1) and set that pixel as the colorkey for removal so that I don’t get the objects’ background color?
There is a property for the texture processor specifying the color for background transparency.
Select your sprite in the solution explorer (it should be in your content project), then look up the property inspector. You should see ‘Content Processor: Texture – XNA Framework’. Expand that section, change Color Key Color as needed. Default value is magenta/bright pink (0xFF00FF).