I know how to sort of use X-Y Quadrants and with what I know I want to make a simple game but I can't figure out how to make someone be able to move by pressing keys.
My Question:
How do you make someone be able move something across the screen using the keyboard? (Like in games.) I prefer an answer telling me how to do it without having to constantly press a key and just hold it down.
I am assuming that you are talking about console. The console isnt really built for that kind of applications. I would recommend you to read this article.
I know that it is not made for games but it can be done. (I've seen consul games on YouTube.) I am going to try and make a simple game anyways but if you know of a better way to make a game please tell me.
Play with this little bit of code. If you add it as a function then loop your movement with a timer until another key pressed it will continue to move in that direction or you can just put into a recursive function so it will keep firing as long as you hold down the key.
http://www.youtube.com/watch?v=Lb_Jy5HGMsk&feature=plcp This guy has terrible english (even worse than me) but he's the most educational youtuber ive seen. Atleast i learn alot for hes tutorials. He also makes easy projects for you to follow along with when you have come to a "Milestone".
Also allegro could be worth checking out. Tho i have no experience with it at all.