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

Username:   Password: 
 RegisterRegister   
 Play two animation at the same time?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Wreathe




PostPosted: Sun Apr 03, 2011 7:11 pm   Post subject: Play two animation at the same time?

drawfillbox(1,1,maxx,maxy,black)

for i : 1 .. 100
Draw.FillOval (i, i, i, i, yellow)
View.Update
delay (150)
Draw.FillOval (i, i, i, i, white)
end for

Draw.FillOval (100,100,100,100,yellow)

for i : 50 .. 150
Draw.FillOval (i, i, i, i, white)
View.Update
delay (150)

end for

How do i play the two animations above at a same time? Basically as the sun goes larger , the light (white) around it expands too!
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Sun Apr 03, 2011 7:18 pm   Post subject: RE:Play two animation at the same time?

You can only have one loop going at a time. Solution -- have only one loop.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Wreathe




PostPosted: Sun Apr 03, 2011 7:34 pm   Post subject: RE:Play two animation at the same time?

Oh, thanks for the reply!
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: