A simple project to show (what I think is) a bug. Press green flag. The sprite moves towards the edge of the stage until it detects that it is touching a white pixel. When it gets to the edge, it detects that it has hit a white pixel. As there are no white pixels on the background, a collision should never be detected.