Mouse click on image

BlitzMax Forums/BlitzMax Beginners Area/Mouse click on image

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Or I suppose you could test for a particular color being at the location clicked inside of the image. So if the image is 50x50 and drawn at location 10,10 and the mouse is clicked at 25,25 then check the pixel in the image at location 15,15 to see if it is not black (clicked). (assuming the background of the image is black)