
-----------------------------------
Tricia
Fri Nov 26, 2004 4:06 pm

Mouse.Where help
-----------------------------------
i'm learning on how to make buttons change colours when the mouse goes over them and i have no idea how to do it except to use the predfined command Mouse.Where

-----------------------------------
Cervantes
Fri Nov 26, 2004 4:20 pm


-----------------------------------
Mouse.Where sure is complicated eh?  Not more complicated than the if statement!  Those if statements, simple as they may seem, are more useful than more complicated functions like Mouse.Where.  Without the if statements, you wouldn't be able to use Mouse.Where all that well.

So, back to the if statements we go!
You have a button, at drawn at (x1, y1, x2, y2).  You also know the position of the mouse, at (x,y).  So, use if statements. 

if x >= x1 and x = y1 and y = 100 and x = 200 and y 