954,224 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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

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. :confused:
if u know the solution please help me

scarface_qwerty
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

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

crazybitez
Newbie Poster
8 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You