Question 1:
I'm making a 2 player game. Can someone tell me how I can make the keyboard recognize two simultaneous keys HELD down at one time?
For example, let's say I have two counters, one that displays how many times the "F" key has been pressed and another counter displaying how many times the "K" key has been pressed. I want to be able to make it so that if both "K" and "F" are both HELD down, that both counters will rise. (Normally, using basic INKEY$, only the last key pressed will register.)
Second question:
I have a program that asks for a key to be pressed at the end of a long list of commands. To be specific, it's an RPG. Let's say, for example, I'm walking around on the map screen and I'm holding the down arrow. When I enter battle, as soon as my fighting options come up, the cursor is already scrolled down to the bottom of the list of commands.
Fight
Magic
Special
> Item
I know this is because it stores up a list of all the keys I press and it keeps using them even after I stop pressing the key.
Is there a way that I can have the program not store up a list of key presses? So that it doesn't take any input from the keyboard until the option is displayed on the screen?
Any help with these questions would be great. (Especially the first one)
I'm making a 2 player game. Can someone tell me how I can make the keyboard recognize two simultaneous keys HELD down at one time?
For example, let's say I have two counters, one that displays how many times the "F" key has been pressed and another counter displaying how many times the "K" key has been pressed. I want to be able to make it so that if both "K" and "F" are both HELD down, that both counters will rise. (Normally, using basic INKEY$, only the last key pressed will register.)
Second question:
I have a program that asks for a key to be pressed at the end of a long list of commands. To be specific, it's an RPG. Let's say, for example, I'm walking around on the map screen and I'm holding the down arrow. When I enter battle, as soon as my fighting options come up, the cursor is already scrolled down to the bottom of the list of commands.
Fight
Magic
Special
> Item
I know this is because it stores up a list of all the keys I press and it keeps using them even after I stop pressing the key.
Is there a way that I can have the program not store up a list of key presses? So that it doesn't take any input from the keyboard until the option is displayed on the screen?
Any help with these questions would be great. (Especially the first one)