
-----------------------------------
poomanchunk
Thu Apr 29, 2004 7:00 pm

Clicking a button with the mouse?
-----------------------------------
Hey, I'm new here. I'm also just in my first year of computer science. I bet you may think I'm dumb, but remember, im a first yearer.
But anyways how do you actually make something where you can click a button or something and it'll move onto the next part. I was playing some trivia games in my class and someone I don't know how a button where you could click it. I never got a chance to ask him how he did it.
Plz could someone tell me how to do this, as I know many people will know how.

-----------------------------------
Cervantes
Thu Apr 29, 2004 7:05 pm


-----------------------------------
use mousewhere.


var x, y, btn : int

drawfillbox (100, 100, 150, 150, green)
loop

mousewhere (x,y,btn)

if x >= 100 and x = 100 and y 