C# and XNA Input from keyboard!

Posts 1–2 of 2 · Page 1 of 1
C# and XNA Input from keyboard!
This is my first thread on MPGH, and alas it is a help thread. I am just starting C# and decided to give XNA a try because of its friendliness. I am having trouble getting input from the user though, so what I am trying to do is very simple so far, press spacebar and the player moves in a fixed direction. So, once I press space the player will move to the right but I want to be able to press space again and the player stops moving. I will try to attach a picture of the code.

imgur: the simple image sharerⓘ
Use keypress event handler...
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us