
-----------------------------------
SunsFan13
Wed May 28, 2008 9:48 am

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?

http://img.photobucket.com/albums/v446/ka_vicious/Catagories.jpg
This is the picture we are using for the categories screen.

-----------------------------------
TheGuardian001
Wed May 28, 2008 2:16 pm

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)


var mousex,mousey,button : int

Mouse.Where(mousex,mousey,button)


then you just check the x and y values if button = 1 (left click)

-----------------------------------
Sean
Wed May 28, 2008 2:30 pm

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.

-----------------------------------
SunsFan13
Thu May 29, 2008 9:55 am

Re: Mouse Help
-----------------------------------
Thanks Guardian, I'm sure I'll be back to post more when it doesn't work :D
