Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 now to make it go down
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
kay188




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
TokenHerbz




PostPosted: Wed Dec 20, 2006 8:00 pm   Post subject: (No 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
kay188




PostPosted: Wed Dec 20, 2006 9:47 pm   Post subject: (No subject)

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

thanks!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: