Last night I had occassion to try and do a sprite collision test between a sprite and another that I was blitting using colorize (specifically, it was an alien space ship that I wanted to have a red, green and blue version of without having multiple image resources, hence colorize).
It seems that intersect didn't work as expected with the colorized image (i.e., no collision detected). Before anyone goes nuts trying to figure it out, it could have been something screwy in my own code, I haven't had a chance to go back to it to be sure.
In any case, the question(s) are: when you do a blit with colorize, does it alter the original surface? If not, does Intersect work against what's been blitted on the target surface (i.e., backbuffer usually) or against the source surface itself? The point of course is that I believe it should work whether you colorize an image or not (assuming it wasn't my code of course, but all I can say is that collisions where working before I did the colorize, then not).
It seems that intersect didn't work as expected with the colorized image (i.e., no collision detected). Before anyone goes nuts trying to figure it out, it could have been something screwy in my own code, I haven't had a chance to go back to it to be sure.
In any case, the question(s) are: when you do a blit with colorize, does it alter the original surface? If not, does Intersect work against what's been blitted on the target surface (i.e., backbuffer usually) or against the source surface itself? The point of course is that I believe it should work whether you colorize an image or not (assuming it wasn't my code of course, but all I can say is that collisions where working before I did the colorize, then not).