Computer Science Canada

now to make it go down

Author:  kay188 [ Wed Dec 20, 2006 7:55 pm ]
Post subject:  now to make it go down

i have this litle code that makes a circle more across the screen.

code:
for i : 0 .. maxx
    drawfilloval (i, 200, 20, 20, 28)
    delay (5)
    drawfilloval(i, 200, 50, 50, 0)
end for


and i have to modify it to make it go from the top to the bottom... so far i made it go up instead... any help?

code:
for i : 0 .. maxy
    drawfilloval (200, i, 20, 20, 28)
    delay (5)
    drawfilloval(200, i, 50, 50, 0)
end for

Author:  TokenHerbz [ Wed Dec 20, 2006 8:00 pm ]
Post subject: 

0,0 (x,y) is bottom left of your screen.

maxx, maxxy (x,y) is top right of your screen.


If you "add" to y, you go up, so how do you go down?

for decreasing i: maxy .. 0

Author:  kay188 [ Wed Dec 20, 2006 9:47 pm ]
Post subject: 

haha.. i realized it when i read half way throught your post.

thanks!


: