I managed to mask an image if I do it before I loading it but I can't manage to mask an image "on the fly" in the gameloop. The idea I had was to first pick a normal maskcolor(background), then I would pick another color as mask and then paint a rect or something behind my image(Tank). In this way I'll be able to create players/ships/etc with a wide selection of colors. But even thou I use SetBlend(AlphaBlend) or SetBlend(MaskBlend) nothing happens to the image.
'Shouldn't this work? SetMaskColor 255,255,0 SetBlend(MASKBLEND) DrawImage Image,BX,BY