Problems with Turbo Pascal...
Posted: Sat Apr 09, 2005 11:35 am
Hey. I've been having some problems in Pascal. I've made a very simple PONG-like game in graphics mode. Everything works perfectly, the collisions, keypresses, etc. The only thing I have a problem with is pushing two buttons at the same time.
The reason I need this is because I plan on having two players on the same keyboard, player one using "w" and "s" to move the left paddle and player two using "i" and "k" to move the right. I was thinking along the lines of checking for other keys while a key is still being pressed, but it hasn't worked for me yet.
Any thoughts?
The reason I need this is because I plan on having two players on the same keyboard, player one using "w" and "s" to move the left paddle and player two using "i" and "k" to move the right. I was thinking along the lines of checking for other keys while a key is still being pressed, but it hasn't worked for me yet.
Any thoughts?