
-----------------------------------
mariomania88
Wed Jan 07, 2004 11:14 am

Draggable fill boxes with random placement
-----------------------------------
How do you make draggable filled boxes that are randomly placed on the screen.  I already masde the boxes randomly appear.

P.S. I am in grade 10 doing an ISP project and help would be appreciated.

-----------------------------------
mariomania88
Wed Jan 07, 2004 11:24 am

Code for the question
-----------------------------------
If it helps, here is my code.  Can someone correct it and tell me what they fixed? Thanks.

var x, y, b : int
randint (x1, 0, maxx)
randint (y1, 0, maxy)
drawfillbox (x1, y1, x1 + 100, y1 + 100, black)
var a, c : int
a := x1
c := y1

loop
    mousewhere (x, y, b)
    if x >= a and x = c and y  f and x = g and y  h and x = i and y  j and x = k and y = a and x = c and y  d and x = e and y 