i went through my code again, they only thing that should be changed are the lines "sub 1". take those out and the routine will work for a pixel to sprite collision