Computer Science Canada Mouse Help |
Author: | SunsFan13 [ Wed May 28, 2008 9:48 am ] |
Post subject: | Mouse Help |
A friend and I are doing a Jeopardy based game for our final project, can someone lead me in the right direction as to how to click a category and have the question appear? This is the picture we are using for the categories screen. |
Author: | TheGuardian001 [ Wed May 28, 2008 2:16 pm ] | ||
Post subject: | Re: Mouse Help | ||
Essentially, what you would need to do is check where the mouse is. Turing has a function called Mouse.Where that returns the location of the mouse and the button that was pressed (1 for left, 10 for middle, 100 for right ie: left and right buttons pressed returns 101)
then you just check the x and y values if button = 1 (left click) |
Author: | Sean [ Wed May 28, 2008 2:30 pm ] |
Post subject: | Re: Mouse Help |
Each Box will have a coordinate on the screen. You will need to compare if the mouse is in between those boxes, and the proper button is pressed. Once that is done, it shallc all up what ever needs to be displayed. |
Author: | SunsFan13 [ Thu May 29, 2008 9:55 am ] |
Post subject: | Re: Mouse Help |
Thanks Guardian, I'm sure I'll be back to post more when it doesn't work |