Computer Science Canada interactive areas "buttons" |
Author: | Regole [ Sun Oct 19, 2003 6:56 pm ] |
Post subject: | interactive areas "buttons" |
I am having a little trouble making a certain area of the screen interactive,I want to allow the user to click on certain areas of the screen and trigger certain animations etc. for example if i placed a square on the screen, the user should be able to click anywhere on that square and something will occur as a result. Does anyone know how i might go about this? I just cant seem to figure it out. |
Author: | AsianSensation [ Sun Oct 19, 2003 7:09 pm ] | ||
Post subject: | |||
use the mouse module in turing.
basicly, you want to set an area that you want the user to click on, if they click within that area, then do something. |
Author: | Tony [ Sun Oct 19, 2003 9:05 pm ] | ||
Post subject: | |||
Mouse.Where is a function that assigns mouse values to the variables passed to. X/Y is the mouse's current location, while btn is button status. 1 is left click 0 is no click. There're also values for right click and clicking both at same time. |