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

Username:   Password: 
 RegisterRegister   
 Animation problem
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
typon




PostPosted: Thu Nov 04, 2004 7:58 pm   Post subject: Animation problem

i know it sounds kind of dumb but i need help with simple animations since i am a noob in turing

i want to make
for x : 0 .. 149
drawfilloval (176, 211 - x, 2, 2, 0)
drawfilloval (176, 210 - x, 2, 2, 39)

end for


and

for x : 0 .. 62
drawfilloval (227, 249 - x, 2, 2, 39)

delay (10)
end for

in the same loop so they go downwards at the same time
please tell me how i can do that
Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Thu Nov 04, 2004 8:16 pm   Post subject: (No subject)

1)
Welcome to CompSci. Be good and you'll have fun.

2)
Pls use [ code] tags when posting code. It's a lot easier on the eyes.

Here's what you have to do:

Right now you have two seperate for loops with your cicles being drawn in each. If you want them to go at the same time, then simply put them into one for loop, and draw your blank circles over them at the end of the loop.

So, something like:
code:

for x : 1..100
   drawfillbox (100, 100 + x, 110, 110 + x, 7)
   drawfillbox (200, 100 + x, 210, 110 + x, 7)
   delay (30)
   drawfillbox (100, 100 + x, 110, 110 + x, 0)
   drawfillbox (200, 100 + x, 210, 110 + x, 0)
end for


Enjoy your stay.
MysticVegeta




PostPosted: Sun Nov 07, 2004 7:31 am   Post subject: (No subject)

if u want the boxes to stay at the end, use this...
code:
for x : 1..100
   drawfillbox (100, 99 + x, 110, 109 + x, 0)
   drawfillbox (100, 100 + x, 110, 110 + x, 7)
   drawfillbox (200, 99 + x, 210, 109 + x, 0)
   drawfillbox (200, 100 + x, 210, 110 + x, 7)
   delay (30)
end for
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: