Getting the number of blue pixels on the screen

Getting the number of blue pixels on the screen in Game Maker is an example of the return function of Game Maker, that is used in Scripts.

Explanation
What the script should do is make a loop that would check the color of each pixel on the room. To do that, we shall check one row at a time, then move on to the next row.

The Code
var width=room_width, height=room_height, current_x, current_y, blue_pixels=0, pixel; for(current_y=0;current_y=32) { 			blue_pixels+=1; } 	} } return blue_pixels;