
-----------------------------------
noobprogrammer123
Mon May 03, 2004 6:46 pm

mouse-click on image
-----------------------------------
how do i get it to tell when the mouse clicks on an image

-----------------------------------
Mazer
Mon May 03, 2004 6:49 pm


-----------------------------------
Where is the image? How big is the image?

Bottom left of image will be (x, y), with a width of w and a height of h.


var mx, my, btn : int

loop
    mousewhere (mx, my, btn)
    Pic.Draw (pic, x, y, 0)

    if btn = 1 and mx >= x and mx = y and my 