1 do while with 2 delay (how u do that??)

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2004
Posts: 1
Reputation: scarface_qwerty is an unknown quantity at this point 
Solved Threads: 0
scarface_qwerty scarface_qwerty is offline Offline
Newbie Poster

1 do while with 2 delay (how u do that??)

 
0
  #1
Jul 27th, 2004
i want to make a bouncing ball program with 10 ball.
the problem is that every ball has his own delay.
i'm stuck in here.
if u know the solution please help me
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 8
Reputation: crazybitez is an unknown quantity at this point 
Solved Threads: 0
crazybitez crazybitez is offline Offline
Newbie Poster

Re: 1 do while with 2 delay (how u do that??)

 
0
  #2
Jul 27th, 2004
Cant u use a library function or something of create ur delay?
If the delays are taking place simultaneously then call the common delay and then the delay of the ball which requires a longer delay.
eg)
If u have ball A with delay 5 s and ball B with delay 8s and their delays start at the same time then call a 5s delay function and then the 3s delay function

Hope this helps...
Piyush
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC