Sir,

i am trying to make a simple pingpong game using Turbo C++ Graphics...

Everything Thing is just going fine...
But I cant manage to move the ball all the time.. and move the bat only when 
the user press the up or down keys..

my ball only moves when user either press up or down key.. 
otherwise it is kept still...

i dont know which function should i use..

currently 
iam using function...

movebat(getch()); // movebat function move the bat up or down.. on pressing 
either 'a' or 'z'

the problem is that the loop stops on this line untill the user presses the 
key.. and as a result ball stops moving.. and ball only moves when the user 
press a key...


Looking Forward For Your Help!

Thanks in Advance!
Regards,
Asad Abbas,
Pakistan, 
 
*****
People will believe anything if you whisper it.


The day Microsoft make a product that doesn't suck is the day they start making 
vacuum cleaners. 
******


visit www.latest-technologies.tk 
For latest news about technologies! 


      

[Non-text portions of this message have been removed]

Reply via email to