
-----------------------------------
typon
Thu Nov 04, 2004 7:58 pm

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

-----------------------------------
Delos
Thu Nov 04, 2004 8:16 pm


-----------------------------------
1)
Welcome to CompSci.  Be good and you'll have fun.

2)
Pls use 
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
Sun Nov 07, 2004 7:31 am


-----------------------------------
if u want the boxes to stay at the end, use this...
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 

