943,667 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4275
  • C++ RSS
Jul 27th, 2004
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
scarface_qwerty is offline Offline
1 posts
since Jul 2004
Jul 27th, 2004
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
crazybitez is offline Offline
8 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: scanf - compiles but causes error
Next Thread in C++ Forum Timeline: Searching in documents...





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC