Turing button confusion
Author |
Message |
compnerd101
|
Posted: Sat Jan 14, 2012 4:08 am Post subject: Turing button confusion |
|
|
When incorporating buttons into turing programs, why is it nessesary to add the:
loop
exit when GUI.ProcessEvent
end loop
why is that chunk of code nessesary for buttons to work? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Beastinonyou
|
Posted: Sat Jan 14, 2012 7:02 am Post subject: Re: Turing button confusion |
|
|
Well, it doesn't have to be, if you make your own buttons.
all you need to make your own button is:
1. Mouse.Where (x, y, b) % X, Y, Mouse State
2. Co-ordinates (x1, y1, x2, y2) % Bottom Left to Top Right
3. Something to do when the User clicks Between your Co-ordinates |
|
|
|
|
|
Aange10
|
Posted: Sat Jan 14, 2012 10:17 am Post subject: RE:Turing button confusion |
|
|
But to answer your question, it is what makes the button "press-able". |
|
|
|
|
|
mirhagk
|
Posted: Sat Jan 14, 2012 10:33 am Post subject: RE:Turing button confusion |
|
|
It basically handles all the work of checking if the button has been pressed, and responding if it has. |
|
|
|
|
|
|
|