Alright Obese... I got tired and stopped doing the bottom right corner...
` Obese's Challenge :P
sync on
blue= 255
Do
if mousey() <=237 and mousex() >=400 then half= 0 else half= 1
for n= 0 to 1
if n =half then ink blue,0 else ink 0,0
box n+400,n*300,n+639,n+237
next n
if mousey() <=237 and mousex() <=239 then half2= 0 else half2= 1
for r= 0 to 1
if r =half2 then ink rgb(100,200,0),0 else ink 0,0
box r,r*300,r+239,r+237
next r
if mousey() >=237 and mousex() <=239 then half3= 0 else half3= 1
for l= 0 to 1
if l =half3 then ink rgb(0,200,0),0 else ink 0,0
box l*220,l+239,l+239,l+479
next l
sync
Loop
I getting tired of this box stuff O_o So instead of doing the code, I'm going to tell you how to do it:
Challenge 1: I already gave you the answer
Challenge 2: The Snippet is above.
Challenge 3: To Detect a Box in the center of the screen, All i have to do is use and's For Example
if mousex()>=320 and mousex()<=100 and mousey()>=100 and mousey()<=200
then I put the box there.
etc.
Challenge 4: First I put in the boxes, then I set it so that when The Mouse moves over it, the color changes:
if mousex()=xxxx and mousey()>=yyyy
ink rgb(255,255,255),0
box x,y,xb,yb
else
ink rgb(rnd(255),rnd(255),rnd(255)),0
box x,y,xb,yb
endif
I think that should do it. Thanks for the challenges Obese. They really made me look hard at the code to study it. I appreciate your time and help.
-Irojo
Syntax Error: Bob does not exist