03-04-2007, 07:34 AM
Code:
do
i = int(rnd*2399)
if water(x,y+1) = 0 then
water(x,y+1) = 1
water(x,y) = 0
pset(x,y-1),0
pset(x,y),255
list(i) = water(x,y)
end if
loop
how do you check your WATER(X,Y) values!
X and Y are always the same never changing!
so nothing in the loop will change except line 21
which will always make your random list(i)=water(x,y) which i believe is always 0