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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.