- #1
CharlieO1212
- 10
- 0
Ok so this is my altered and rephrased question. I need help programming something that uses an input. Now it is not as simple as it sounds because I want the user of the program to be able to run the program and have several things happen. When he/she runs the program I want him/her to press "w" and have the sprite move up. I want him/her to press "s" and have the sprite move down. In CB (Chipmunk Basic) There are no assigned values to the arrow keys (AKA they don't work) and so i wanted help programming something that when a key is pressed it acts like an arrow key. I don't want the program to come up with something say "please enter the desired key" or something like that. I want the user to be able to run the program and press the key to move up, down, left, right etc.
If you need more clarification please let me know. Thanks in advance!
If you need more clarification please let me know. Thanks in advance!