by DilloDude » Sat May 10, 2008 12:51 am
Basically you can draw a rectangle on a canvas. When you click, store the mouse position, and set a variable. On draw, check the variable to see if you are clicking, and if so, (re)draw a rectangle from the click position to the current mouse position. On mouse button up, turn off the variable, and erase the rectangle. Then a good way is to loop through every object that can be selected, and if it's inside that rectangle, select it.