
-----------------------------------
tristanbryce7
Tue Jan 15, 2013 1:06 pm

Disabling certain sections of the screen
-----------------------------------
I am trying to make it so that, i have four boxes (using drawbox) on the screen, and only one box is correct, so if the user clicks a wrong box (mousewhere), it draws a "wrong" picture, and also blacks out the box (drawfillbox). Now i want it so that if they click the same box again, nothing happens, how would I do that?

-----------------------------------
Tony
Tue Jan 15, 2013 2:22 pm

RE:Disabling certain sections of the screen
-----------------------------------
how are you making it do "not nothing" (show code)?

The typical approach is
[code]
if (conditions_to_do_something) and (has_not_done_this_before) then
   % do something
end if
[/code]

-----------------------------------
tristanbryce7
Tue Jan 15, 2013 3:23 pm

Re: Disabling certain sections of the screen
-----------------------------------
Well, I am using mousewhere inside a loop, so if they click it again it would execute again 

its basically a quiz, and they have 4 options, and each box is an option, so if they don't click the right one, i want to just "disable" that set of co-ordinates so if they click there again (no matter how many times they do, (excluding the first time, in which it says "Wrong" and draws a Pic of a big X) the program doesnt do anything 


loop
    mousewhere (x, y, b)

    if b = 1 and x >= 48 and x = 505 and y = 41 and x = 274 and y = 28 and x = 4 and y = 1054 and x = 758 and y = 28 and x = 4 and y 